libosmo-sigtran  1.9.0.4-dc82
Osmocom SIGTRAN library
sccp_scmg.h
Go to the documentation of this file.
1 #pragma once
2 
3 /* SCCP Management as per Section 5.3 of ITU-T Q.713 */
4 
6  SCCP_SCMG_MSGT_SSA = 0x01, /* Subsystem Allowed */
7  SCCP_SCMG_MSGT_SSP = 0x02, /* Subsystem Prohibited */
8  SCCP_SCMG_MSGT_SST = 0x03, /* Subsystem Status Test */
9  SCCP_SCMG_MSGT_SOR = 0x04, /* Subsystem Out-of-service Request */
10  SCCP_SCMG_MSGT_SOG = 0x05, /* Subsystem Out-of-service Grant */
11  SCCP_SCMG_MSGT_SSC = 0x06, /* Subsystem Congested */
12 };
13 
14 struct sccp_scmg_msg {
15  uint8_t msg_type; /* enum sccp_scmg_msg_type */
16  uint8_t affected_ssn;
17  uint16_t affected_pc;
18  uint8_t smi;
19  /* one octet, only in case of SSC */
20  uint8_t ssc_congestion_lvl[0];
21 } __attribute__ ((packed));
22 
23 extern const struct value_string sccp_scmg_msgt_names[];
24 static inline const char *sccp_scmg_msgt_name(enum sccp_scmg_msg_type msgt)
25 { return get_value_string(sccp_scmg_msgt_names, msgt); }
uint16_t affected_pc
Definition: sccp_scmg.h:17
Definition: sccp_scmg.h:8
static const char * sccp_scmg_msgt_name(enum sccp_scmg_msg_type msgt)
Definition: sccp_scmg.h:24
const struct value_string sccp_scmg_msgt_names[]
Definition: sccp_scmg.c:158
uint8_t ssc_congestion_lvl[0]
Definition: sccp_scmg.h:20
Definition: sccp_scmg.h:6
struct sccp_scmg_msg __attribute__((packed))
Definition: sccp_scmg.h:10
Definition: sccp_scmg.h:11
Definition: sccp_scmg.h:7
sccp_scmg_msg_type
Definition: sccp_scmg.h:5
uint8_t msg_type
Definition: sccp_scmg.h:15
Definition: sccp_scmg.h:14
uint8_t affected_ssn
Definition: sccp_scmg.h:16
Definition: sccp_scmg.h:9
uint8_t smi
Definition: sccp_scmg.h:18