| 1 | #cxx . . $ `<file>/include/osmocom/sigtran/protocol/sccp_scmg.h`/pragma once |
| 2 | |
| 3 | /* SCCP Management as per Section 5.3 of ITU-T Q.713 */ |
| 4 | |
| 5 | enum sccp_scmg_msg_typecxx . . $ sccp_scmg_msg_type# { |
| 6 | SCCP_SCMG_MSGT_SSAcxx . . $ SCCP_SCMG_MSGT_SSA. = 0x01, /* Subsystem Allowed */ |
| 7 | SCCP_SCMG_MSGT_SSPcxx . . $ SCCP_SCMG_MSGT_SSP. = 0x02, /* Subsystem Prohibited */ |
| 8 | SCCP_SCMG_MSGT_SSTcxx . . $ SCCP_SCMG_MSGT_SST. = 0x03, /* Subsystem Status Test */ |
| 9 | SCCP_SCMG_MSGT_SORcxx . . $ SCCP_SCMG_MSGT_SOR. = 0x04, /* Subsystem Out-of-service Request */ |
| 10 | SCCP_SCMG_MSGT_SOGcxx . . $ SCCP_SCMG_MSGT_SOG. = 0x05, /* Subsystem Out-of-service Grant */ |
| 11 | SCCP_SCMG_MSGT_SSCcxx . . $ SCCP_SCMG_MSGT_SSC. = 0x06, /* Subsystem Congested */ |
| 12 | }; |
| 13 | |
| 14 | struct sccp_scmg_msgcxx . . $ sccp_scmg_msg# { |
| 15 | uint8_tcxx . . $ uint8_t# msg_typecxx . . $ sccp_scmg_msg#msg_type.; /* enum sccp_scmg_msg_type */ |
| 16 | uint8_tcxx . . $ uint8_t# affected_ssncxx . . $ sccp_scmg_msg#affected_ssn.; |
| 17 | uint16_tcxx . . $ uint16_t# affected_pccxx . . $ sccp_scmg_msg#affected_pc.; |
| 18 | uint8_tcxx . . $ uint8_t# smicxx . . $ sccp_scmg_msg#smi.; |
| 19 | /* one octet, only in case of SSC */ |
| 20 | uint8_tcxx . . $ uint8_t# ssc_congestion_lvlcxx . . $ sccp_scmg_msg#ssc_congestion_lvl.[0]; |
| 21 | } __attribute__ ((packed)); |
| 22 | |
| 23 | extern const struct value_stringcxx . . $ value_string# sccp_scmg_msgt_namescxx . . $ sccp_scmg_msgt_names.[]; |
| 24 | static inlinecxx . . $ `<external>/10627926521687321252/linuxlist.h:22:9`! const char *sccp_scmg_msgt_namecxx . . $ sccp_scmg_msgt_name(f3ee0e50ba1f56c3).(enum sccp_scmg_msg_typecxx . . $ sccp_scmg_msg_type# msgt) |
| 25 | { return get_value_stringcxx . . $ get_value_string(c9db86ff1f80b9ea).(sccp_scmg_msgt_namescxx . . $ sccp_scmg_msgt_names., msgt); } |