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