libosmo-sigtran 2.0.0.52-6412
Osmocom SIGTRAN library
sccp_scmg.h
Go to the documentation of this file.
1#pragma once
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
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 */
21} __attribute__ ((packed));
22
23extern const struct value_string sccp_scmg_msgt_names[];
24static 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
Definition: sccp_scmg.h:5
@ SCCP_SCMG_MSGT_SSC
Definition: sccp_scmg.h:11
@ SCCP_SCMG_MSGT_SOG
Definition: sccp_scmg.h:10
@ SCCP_SCMG_MSGT_SST
Definition: sccp_scmg.h:8
@ SCCP_SCMG_MSGT_SOR
Definition: sccp_scmg.h:9
@ SCCP_SCMG_MSGT_SSP
Definition: sccp_scmg.h:7
@ SCCP_SCMG_MSGT_SSA
Definition: sccp_scmg.h:6
const struct value_string sccp_scmg_msgt_names[]
Definition: sccp_scmg.c:158
struct sccp_scmg_msg __attribute__((packed))
static const char * sccp_scmg_msgt_name(enum sccp_scmg_msg_type msgt)
Definition: sccp_scmg.h:24
Definition: sccp_scmg.h:14
uint8_t ssc_congestion_lvl[0]
Definition: sccp_scmg.h:20
uint8_t affected_ssn
Definition: sccp_scmg.h:16
uint16_t affected_pc
Definition: sccp_scmg.h:17
uint8_t msg_type
Definition: sccp_scmg.h:15
uint8_t smi
Definition: sccp_scmg.h:18