Loading...
Searching...
No Matches
ss7_as.h
Go to the documentation of this file.
#pragma once
#include <stdint.h>
#include <osmocom/core/linuxlist.h>
#include <osmocom/core/fsm.h>
#include <osmocom/core/msgb.h>
#include <osmocom/core/tdef.h>
#include <osmocom/netif/stream.h>
#include <osmocom/sigtran/osmo_ss7.h>
#include "ss7_internal.h"
/***********************************************************************
* SS7 Application Server
***********************************************************************/
struct osmo_ss7_instance;
struct osmo_ss7_asp;
enum osmo_ss7_as_patch_sccp_mode {
OSMO_SS7_PATCH_NONE, /* no patching of SCCP */
OSMO_SS7_PATCH_BOTH, /* patch both OPC and DPC into SCCP addresses */
};
enum ss7_as_ctr {
SS7_AS_CTR_RX_MSU_TOTAL,
SS7_AS_CTR_TX_MSU_TOTAL,
};
struct osmo_ss7_as {
struct llist_head list;
struct osmo_ss7_instance *inst;
struct osmo_fsm_inst *fi;
bool rkm_dyn_allocated;
bool simple_client_allocated;
struct rate_ctr_group *ctrg;
struct {
char *name;
char *description;
enum osmo_ss7_asp_protocol proto;
struct osmo_ss7_routing_key routing_key;
enum osmo_ss7_as_traffic_mode mode;
/* traffic mode was configured by VTY / config file */
bool mode_set_by_vty;
/* traffic mode was configured by RKM (routing key management) or first ASPAC */
bool mode_set_by_peer;
uint32_t recovery_timeout_msec;
uint8_t qos_class;
struct {
uint32_t dpc;
enum osmo_ss7_as_patch_sccp_mode sccp_mode;
} pc_override;
struct osmo_ss7_asp *asps[16];
uint8_t last_asp_idx_sent; /* used for load-sharing traffic mode (round robin implementation) */
} cfg;
};
#define LOGPAS(as, subsys, level, fmt, args ...) \
_LOGSS7((as)->inst, subsys, level, "as-%s: " fmt, (as)->cfg.name, ## args)
osmo_ss7.h
osmo_ss7_asp_protocol
osmo_ss7_asp_protocol
Definition osmo_ss7.h:153
osmo_ss7_as_traffic_mode
osmo_ss7_as_traffic_mode
Definition osmo_ss7.h:175
osmo_ss7_as_patch_sccp_mode
osmo_ss7_as_patch_sccp_mode
Definition ss7_as.h:21
OSMO_SS7_PATCH_BOTH
@ OSMO_SS7_PATCH_BOTH
Definition ss7_as.h:23
OSMO_SS7_PATCH_NONE
@ OSMO_SS7_PATCH_NONE
Definition ss7_as.h:22
ss7_as_ctr
ss7_as_ctr
Definition ss7_as.h:26
SS7_AS_CTR_RX_MSU_TOTAL
@ SS7_AS_CTR_RX_MSU_TOTAL
Definition ss7_as.h:27
SS7_AS_CTR_TX_MSU_TOTAL
@ SS7_AS_CTR_TX_MSU_TOTAL
Definition ss7_as.h:28
ss7_internal.h
osmo_ss7_as
Definition ss7_as.h:31
osmo_ss7_as::routing_key
struct osmo_ss7_routing_key routing_key
Definition ss7_as.h:52
osmo_ss7_as::recovery_timeout_msec
uint32_t recovery_timeout_msec
Definition ss7_as.h:58
osmo_ss7_as::list
struct llist_head list
entry in 'ref osmo_ss7_instance.as_list
Definition ss7_as.h:33
osmo_ss7_as::description
char * description
Definition ss7_as.h:50
osmo_ss7_as::rkm_dyn_allocated
bool rkm_dyn_allocated
Were we dynamically allocated by RKM?
Definition ss7_as.h:40
osmo_ss7_as::ctrg
struct rate_ctr_group * ctrg
Rate Counter Group.
Definition ss7_as.h:46
osmo_ss7_as::asps
struct osmo_ss7_asp * asps[16]
Definition ss7_as.h:65
osmo_ss7_as::last_asp_idx_sent
uint8_t last_asp_idx_sent
Definition ss7_as.h:66
osmo_ss7_as::name
char * name
Definition ss7_as.h:49
osmo_ss7_as::mode_set_by_vty
bool mode_set_by_vty
Definition ss7_as.h:55
osmo_ss7_as::fi
struct osmo_fsm_inst * fi
AS FSM.
Definition ss7_as.h:37
osmo_ss7_as::simple_client_allocated
bool simple_client_allocated
Were we allocated by "simple client" support?
Definition ss7_as.h:43
osmo_ss7_as::dpc
uint32_t dpc
Definition ss7_as.h:61
osmo_ss7_as::mode
enum osmo_ss7_as_traffic_mode mode
Definition ss7_as.h:53
osmo_ss7_as::cfg
struct osmo_ss7_as::@042374253351254041134352011246033374166025320223 cfg
osmo_ss7_as::proto
enum osmo_ss7_asp_protocol proto
Definition ss7_as.h:51
osmo_ss7_as::sccp_mode
enum osmo_ss7_as_patch_sccp_mode sccp_mode
Definition ss7_as.h:62
osmo_ss7_as::inst
struct osmo_ss7_instance * inst
Definition ss7_as.h:34
osmo_ss7_as::mode_set_by_peer
bool mode_set_by_peer
Definition ss7_as.h:57
osmo_ss7_as::qos_class
uint8_t qos_class
Definition ss7_as.h:59
osmo_ss7_asp
Definition ss7_asp.h:28
osmo_ss7_instance
Definition ss7_instance.h:20
osmo_ss7_routing_key
Definition osmo_ss7.h:138