libosmo-sigtran 2.2.1.63-bc8b 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
5 enum sccp_scmg_msg_type {
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); }
sccp_scmg_msg_type
sccp_scmg_msg_type
Definition: sccp_scmg.h:5
SCCP_SCMG_MSGT_SSC
@ SCCP_SCMG_MSGT_SSC
Definition: sccp_scmg.h:11
SCCP_SCMG_MSGT_SOG
@ SCCP_SCMG_MSGT_SOG
Definition: sccp_scmg.h:10
SCCP_SCMG_MSGT_SST
@ SCCP_SCMG_MSGT_SST
Definition: sccp_scmg.h:8
SCCP_SCMG_MSGT_SOR
@ SCCP_SCMG_MSGT_SOR
Definition: sccp_scmg.h:9
SCCP_SCMG_MSGT_SSP
@ SCCP_SCMG_MSGT_SSP
Definition: sccp_scmg.h:7
SCCP_SCMG_MSGT_SSA
@ SCCP_SCMG_MSGT_SSA
Definition: sccp_scmg.h:6
sccp_scmg_msgt_names
const struct value_string sccp_scmg_msgt_names[]
Definition: sccp_scmg.c:177
__attribute__
struct sccp_scmg_msg __attribute__((packed))
sccp_scmg_msgt_name
static const char * sccp_scmg_msgt_name(enum sccp_scmg_msg_type msgt)
Definition: sccp_scmg.h:24
sccp_scmg_msg
Definition: sccp_scmg.h:14
sccp_scmg_msg::ssc_congestion_lvl
uint8_t ssc_congestion_lvl[0]
Definition: sccp_scmg.h:20
sccp_scmg_msg::affected_ssn
uint8_t affected_ssn
Definition: sccp_scmg.h:16
sccp_scmg_msg::affected_pc
uint16_t affected_pc
Definition: sccp_scmg.h:17
sccp_scmg_msg::msg_type
uint8_t msg_type
Definition: sccp_scmg.h:15
sccp_scmg_msg::smi
uint8_t smi
Definition: sccp_scmg.h:18