libosmo-sigtran 2.2.1.4-74d0 Osmocom SIGTRAN library

xua_types.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4
8 enum {
9 MUA_TAG_RESERVED, /* Reserved */
10 MUA_TAG_IDENT_INT, /* Interface Identifier (Integer) (M2UA) */
11 MUA_TAG_UNUSED1, /* Unused */
12 MUA_TAG_IDENT_TEXT, /* Interface Identifier (Text) (M2UA) */
13 MUA_TAG_INFO, /* Info String */
14 MUA_TAG_UNUSED2, /* Unused */
15 MUA_TAG_ROUTING_CTX, /* Routing Context (M3UA) */
16 MUA_TAG_DIAG_INF, /* Diagnostic Information */
17 MUA_TAG_IDENT_RANGE, /* Interface Identifier (Integer Range) */
18 MUA_TAG_BEAT_DATA, /* Heartbeat Data */
19 MUA_TAG_UNUSED4, /* Unused */
20 MUA_TAG_TRA_MODE, /* Traffic Mode Type */
21 MUA_TAG_ERR_CODE, /* Error Code */
22 MUA_TAG_STATUS, /* Status Type/Information */
23 MUA_TAG_UNUSED5, /* Unused */
24 MUA_TAG_UNUSED6, /* Unused */
25 MUA_TAG_UNUSED7, /* Unused */
26 MUA_TAG_ASP_IDENT, /* ASP Identifier */
27 MUA_TAG_AFF_PC, /* Affected Point Code (M3UA) */
28 MUA_TAG_CORREL_ID, /* Correlation Id */
29};
30
31 struct xua_common_hdr {
32 uint8_t version;
33 uint8_t spare;
34 uint8_t msg_class;
35 uint8_t msg_type;
36 uint32_t msg_length;
37 uint8_t data[0];
38} __attribute__((packed));
39
40
41 struct xua_parameter_hdr {
42 uint16_t tag;
43 uint16_t len;
44 uint8_t data[0];
45} __attribute__((packed));
xua_common_hdr
Definition: xua_types.h:31
xua_common_hdr::msg_length
uint32_t msg_length
Definition: xua_types.h:36
xua_common_hdr::data
uint8_t data[0]
Definition: xua_types.h:37
xua_common_hdr::msg_type
uint8_t msg_type
Definition: xua_types.h:35
xua_common_hdr::spare
uint8_t spare
Definition: xua_types.h:33
xua_common_hdr::version
uint8_t version
Definition: xua_types.h:32
xua_common_hdr::msg_class
uint8_t msg_class
Definition: xua_types.h:34
xua_parameter_hdr
Definition: xua_types.h:41
xua_parameter_hdr::data
uint8_t data[0]
Definition: xua_types.h:44
xua_parameter_hdr::len
uint16_t len
Definition: xua_types.h:43
xua_parameter_hdr::tag
uint16_t tag
Definition: xua_types.h:42
MUA_TAG_AFF_PC
@ MUA_TAG_AFF_PC
Definition: xua_types.h:27
MUA_TAG_IDENT_TEXT
@ MUA_TAG_IDENT_TEXT
Definition: xua_types.h:12
MUA_TAG_INFO
@ MUA_TAG_INFO
Definition: xua_types.h:13
MUA_TAG_RESERVED
@ MUA_TAG_RESERVED
Definition: xua_types.h:9
MUA_TAG_IDENT_RANGE
@ MUA_TAG_IDENT_RANGE
Definition: xua_types.h:17
MUA_TAG_UNUSED4
@ MUA_TAG_UNUSED4
Definition: xua_types.h:19
MUA_TAG_IDENT_INT
@ MUA_TAG_IDENT_INT
Definition: xua_types.h:10
MUA_TAG_CORREL_ID
@ MUA_TAG_CORREL_ID
Definition: xua_types.h:28
MUA_TAG_UNUSED6
@ MUA_TAG_UNUSED6
Definition: xua_types.h:24
MUA_TAG_UNUSED2
@ MUA_TAG_UNUSED2
Definition: xua_types.h:14
MUA_TAG_TRA_MODE
@ MUA_TAG_TRA_MODE
Definition: xua_types.h:20
MUA_TAG_DIAG_INF
@ MUA_TAG_DIAG_INF
Definition: xua_types.h:16
MUA_TAG_UNUSED5
@ MUA_TAG_UNUSED5
Definition: xua_types.h:23
MUA_TAG_ASP_IDENT
@ MUA_TAG_ASP_IDENT
Definition: xua_types.h:26
MUA_TAG_UNUSED1
@ MUA_TAG_UNUSED1
Definition: xua_types.h:11
MUA_TAG_UNUSED7
@ MUA_TAG_UNUSED7
Definition: xua_types.h:25
MUA_TAG_BEAT_DATA
@ MUA_TAG_BEAT_DATA
Definition: xua_types.h:18
MUA_TAG_STATUS
@ MUA_TAG_STATUS
Definition: xua_types.h:22
MUA_TAG_ERR_CODE
@ MUA_TAG_ERR_CODE
Definition: xua_types.h:21
MUA_TAG_ROUTING_CTX
@ MUA_TAG_ROUTING_CTX
Definition: xua_types.h:15
__attribute__
struct xua_common_hdr __attribute__((packed))