libosmo-sigtran 2.0.0.50-b59d
Osmocom SIGTRAN library
ss7_as.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4#include <osmocom/core/linuxlist.h>
5#include <osmocom/core/fsm.h>
6#include <osmocom/core/msgb.h>
7#include <osmocom/core/tdef.h>
8#include <osmocom/netif/stream.h>
9
11
12#include "ss7_internal.h"
13
14/***********************************************************************
15 * SS7 Application Server
16 ***********************************************************************/
17
19struct osmo_ss7_asp;
20
22 OSMO_SS7_PATCH_NONE, /* no patching of SCCP */
23 OSMO_SS7_PATCH_BOTH, /* patch both OPC and DPC into SCCP addresses */
24};
25
29};
30
33 struct llist_head list;
35
37 struct osmo_fsm_inst *fi;
38
41
44
46 struct rate_ctr_group *ctrg;
47
48 struct {
49 char *name;
54 /* traffic mode was configured by VTY / config file */
56 /* traffic mode was configured by RKM (routing key management) or first ASPAC */
59 uint8_t qos_class;
60 struct {
61 uint32_t dpc;
64
65 struct osmo_ss7_asp *asps[16];
66 uint8_t last_asp_idx_sent; /* used for load-sharing traffic mode (round robin implementation) */
67 } cfg;
68};
69
70#define LOGPAS(as, subsys, level, fmt, args ...) \
71 _LOGSS7((as)->inst, subsys, level, "as-%s: " fmt, (as)->cfg.name, ## args)
osmo_ss7_asp_protocol
Definition: osmo_ss7.h:153
osmo_ss7_as_traffic_mode
Definition: osmo_ss7.h:175
osmo_ss7_as_patch_sccp_mode
Definition: ss7_as.h:21
@ OSMO_SS7_PATCH_BOTH
Definition: ss7_as.h:23
@ OSMO_SS7_PATCH_NONE
Definition: ss7_as.h:22
ss7_as_ctr
Definition: ss7_as.h:26
@ SS7_AS_CTR_RX_MSU_TOTAL
Definition: ss7_as.h:27
@ SS7_AS_CTR_TX_MSU_TOTAL
Definition: ss7_as.h:28
Definition: ss7_as.h:31
struct osmo_ss7_routing_key routing_key
Definition: ss7_as.h:52
uint32_t recovery_timeout_msec
Definition: ss7_as.h:58
struct llist_head list
entry in 'ref osmo_ss7_instance.as_list
Definition: ss7_as.h:33
char * description
Definition: ss7_as.h:50
bool rkm_dyn_allocated
Were we dynamically allocated by RKM?
Definition: ss7_as.h:40
struct rate_ctr_group * ctrg
Rate Counter Group.
Definition: ss7_as.h:46
struct osmo_ss7_asp * asps[16]
Definition: ss7_as.h:65
uint8_t last_asp_idx_sent
Definition: ss7_as.h:66
char * name
Definition: ss7_as.h:49
bool mode_set_by_vty
Definition: ss7_as.h:55
struct osmo_fsm_inst * fi
AS FSM.
Definition: ss7_as.h:37
bool simple_client_allocated
Were we allocated by "simple client" support?
Definition: ss7_as.h:43
uint32_t dpc
Definition: ss7_as.h:61
enum osmo_ss7_as_traffic_mode mode
Definition: ss7_as.h:53
struct osmo_ss7_as::@22::@23 pc_override
enum osmo_ss7_asp_protocol proto
Definition: ss7_as.h:51
enum osmo_ss7_as_patch_sccp_mode sccp_mode
Definition: ss7_as.h:62
struct osmo_ss7_instance * inst
Definition: ss7_as.h:34
bool mode_set_by_peer
Definition: ss7_as.h:57
uint8_t qos_class
Definition: ss7_as.h:59
struct osmo_ss7_as::@22 cfg
Definition: ss7_asp.h:28
Definition: ss7_instance.h:20
Definition: osmo_ss7.h:138