22 #include <osmocom/core/linuxlist.h> 25 #define XUA_HDR(class, type) ((struct xua_common_hdr) { .spare = 0, .msg_class = (class), .msg_type = (type) }) 39 struct llist_head entry;
52 const uint16_t *mand_ies[256];
82 const struct xua_msg *xua_in, uint16_t tag_in);
109 unsigned int num_maps);
int log_subsys
Definition: xua_msg.h:59
uint8_t version
Definition: xua_types.h:67
int msgb_t16l16vp_put_u32(struct msgb *msg, uint16_t tag, uint32_t val)
Definition: xua_msg.c:273
struct xua_msg * xua_from_nested(struct xua_msg_part *outer)
Definition: xua_msg.c:186
uint16_t port
Definition: xua_msg.h:57
uint8_t * dat
Definition: xua_msg.h:43
uint8_t msg_type
Definition: sccp_scmg.h:38
int msgb_t16l16vp_put(struct msgb *msg, uint16_t tag, uint16_t len, const uint8_t *data)
Definition: xua_msg.c:247
uint16_t len
Definition: xua_msg.h:42
const char * xua_msg_part_get_str(const struct xua_msg_part *part)
Definition: xua_msg.c:310
char * xua_msg_dump(struct xua_msg *xua, const struct xua_dialect *dialect)
Definition: xua_msg.c:522
const struct value_string * msgt_names
Definition: xua_msg.h:50
struct xua_msg * xua_msg_alloc(void)
Definition: xua_msg.c:44
int xua_msg_add_u32(struct xua_msg *xua, uint16_t iei, uint32_t val)
Definition: xua_msg.c:280
const char * name
Definition: xua_msg.h:49
uint8_t msg_type
Definition: xua_msg.h:65
int xua_msg_add_data(struct xua_msg *msg, uint16_t tag, uint16_t len, const uint8_t *dat)
Definition: xua_msg.c:61
uint8_t msg_class
Definition: xua_msg.h:64
struct xua_msg * xua_from_msg(const int version, uint16_t len, uint8_t *data)
Definition: xua_msg.c:151
void osmo_xua_msg_tall_ctx_init(void *ctx)
Definition: xua_msg.c:39
int xua_msg_free_tag(struct xua_msg *xua, uint16_t tag)
Definition: xua_msg.c:97
uint16_t tag
Definition: xua_msg.h:41
int xua_msg_copy_part(struct xua_msg *xua_out, uint16_t tag_out, const struct xua_msg *xua_in, uint16_t tag_in)
Definition: xua_msg.c:111
uint16_t tag
Definition: xua_types.h:67
const char * xua_class_msg_name(const struct xua_msg_class *xmc, uint16_t msg_type)
Definition: xua_msg.c:451
int xua_msg_add_sccp_addr(struct xua_msg *xua, uint16_t iei, const struct osmo_sccp_addr *addr)
Definition: xua_msg.c:379
const struct xua_dialect xua_dialect_sua
Definition: sua.c:218
void xua_msg_free(struct xua_msg *msg)
Definition: xua_msg.c:56
struct msgb * xua_to_msg(const int version, struct xua_msg *msg)
Definition: xua_msg.c:203
const char * xua_class_iei_name(const struct xua_msg_class *xmc, uint16_t iei)
Definition: xua_msg.c:463
int event
Definition: xua_msg.h:66
Definition: xua_types.h:31
const char * name
Definition: xua_msg.h:56
Definition: sccp_sap.h:183
int xua_msg_event_map(const struct xua_msg *xua, const struct xua_msg_event_map *maps, unsigned int num_maps)
Map from a xua_msg (class+type) to an event.
Definition: xua_msg.c:435
Definition: sccp_sap.h:175
struct xua_common_hdr hdr
Definition: xua_msg.h:32
char * xua_hdr_dump(struct xua_msg *xua, const struct xua_dialect *dialect)
Definition: xua_msg.c:475
uint8_t data[0]
Definition: xua_types.h:72
uint16_t ppid
Definition: xua_msg.h:58
const uint32_t * xua_msg_get_u32p(const struct xua_msg *xua, uint16_t iei, uint32_t *out)
Definition: xua_msg.c:301
struct llist_head headers
Definition: xua_msg.h:35
struct xua_msg_part * xua_msg_find_tag(const struct xua_msg *msg, uint16_t tag)
Definition: xua_msg.c:86
uint32_t xua_msg_get_u32(const struct xua_msg *xua, uint16_t iei)
Definition: xua_msg.c:292
int xua_dialect_check_all_mand_ies(const struct xua_dialect *dialect, struct xua_msg *xua)
Definition: xua_msg.c:490
const struct value_string * iei_names
Definition: xua_msg.h:51
const struct xua_dialect xua_dialect_m3ua
Definition: m3ua.c:273
uint16_t len
Definition: xua_types.h:68
uint32_t xua_msg_part_get_u32(const struct xua_msg_part *part)
Definition: xua_msg.c:286
const char * xua_msg_get_str(const struct xua_msg *xua, uint16_t iei)
Definition: xua_msg.c:325
int xua_msg_get_len(const struct xua_msg *xua, uint16_t iei)
Definition: xua_msg.c:333
void xua_part_add_gt(struct msgb *msg, const struct osmo_sccp_gt *gt)
Definition: xua_msg.c:341
struct osmo_mtp_transfer_param mtp
Definition: xua_msg.h:33