Functions |
static uint16_t | TVLV_GROSS_LEN (uint16_t len) |
| gross length of a TVLV type field
|
static uint16_t | VTVL_GAN_GROSS_LEN (uint16_t tag, uint16_t len) |
| gross length of vTvL header (tag+len)
|
static uint16_t | VTVLV_GAN_GROSS_LEN (uint16_t tag, uint16_t len) |
| gross length of vTvLV (tag+len+val)
|
static uint8_t * | lv_put (uint8_t *buf, uint8_t len, const uint8_t *val) |
| put (append) a LV field
|
static uint8_t * | tlv_put (uint8_t *buf, uint8_t tag, uint8_t len, const uint8_t *val) |
| put (append) a TLV field
|
static uint8_t * | tlv16_put (uint8_t *buf, uint8_t tag, uint8_t len, const uint16_t *val) |
| put (append) a TLV16 field
|
static uint8_t * | tl16v_put (uint8_t *buf, uint8_t tag, uint16_t len, const uint8_t *val) |
| put (append) a TL16V field
|
static uint8_t * | tvlv_put (uint8_t *buf, uint8_t tag, uint16_t len, const uint8_t *val) |
| put (append) a TvLV field
|
static uint8_t * | vt_gan_put (uint8_t *buf, uint16_t tag) |
| put (append) a variable-length tag or variable-length length *
|
static uint8_t * | vtvl_gan_put (uint8_t *buf, uint16_t tag, uint16_t len) |
static uint8_t * | vtvlv_gan_put (uint8_t *buf, uint16_t tag, uint16_t len, const uint8_t *val) |
static uint8_t * | msgb_tlv16_put (struct msgb *msg, uint8_t tag, uint8_t len, const uint16_t *val) |
| put (append) a TLV16 field to msgb
|
static uint8_t * | msgb_tl16v_put (struct msgb *msg, uint8_t tag, uint16_t len, const uint8_t *val) |
| put (append) a TL16V field to msgb
|
static uint8_t * | msgb_tvlv_put (struct msgb *msg, uint8_t tag, uint16_t len, const uint8_t *val) |
| put (append) a TvLV field to msgb
|
static uint8_t * | msgb_vtvlv_gan_put (struct msgb *msg, uint16_t tag, uint16_t len, const uint8_t *val) |
| put (append) a vTvLV field to msgb
|
static uint8_t * | msgb_l16tv_put (struct msgb *msg, uint16_t len, uint8_t tag, const uint8_t *val) |
| put (append) a L16TV field to msgb
|
static uint8_t * | v_put (uint8_t *buf, uint8_t val) |
| put (append) a V field
|
static uint8_t * | tv_put (uint8_t *buf, uint8_t tag, uint8_t val) |
| put (append) a TV field
|
static uint8_t * | tv_fixed_put (uint8_t *buf, uint8_t tag, unsigned int len, const uint8_t *val) |
| put (append) a TVfixed field
|
static uint8_t * | tv16_put (uint8_t *buf, uint8_t tag, uint16_t val) |
| put (append) a TV16 field
|
static uint8_t * | msgb_lv_put (struct msgb *msg, uint8_t len, const uint8_t *val) |
| put (append) a LV field to a msgb
|
static uint8_t * | msgb_tlv_put (struct msgb *msg, uint8_t tag, uint8_t len, const uint8_t *val) |
| put (append) a TLV field to a msgb
|
static uint8_t * | msgb_tv_put (struct msgb *msg, uint8_t tag, uint8_t val) |
| put (append) a TV field to a msgb
|
static uint8_t * | msgb_tv_fixed_put (struct msgb *msg, uint8_t tag, unsigned int len, const uint8_t *val) |
| put (append) a TVfixed field to a msgb
|
static uint8_t * | msgb_v_put (struct msgb *msg, uint8_t val) |
| put (append) a V field to a msgb
|
static uint8_t * | msgb_tv16_put (struct msgb *msg, uint8_t tag, uint16_t val) |
| put (append) a TV16 field to a msgb
|
static uint8_t * | msgb_tlv_push (struct msgb *msg, uint8_t tag, uint8_t len, const uint8_t *val) |
| push (prepend) a TLV field to a msgb
|
static uint8_t * | msgb_tv_push (struct msgb *msg, uint8_t tag, uint8_t val) |
| push (prepend) a TV field to a msgb
|
static uint8_t * | msgb_tv16_push (struct msgb *msg, uint8_t tag, uint16_t val) |
| push (prepend) a TV16 field to a msgb
|
static uint8_t * | msgb_tvlv_push (struct msgb *msg, uint8_t tag, uint16_t len, const uint8_t *val) |
| push (prepend) a TvLV field to a msgb
|
static uint8_t * | msgb_vtvl_gan_push (struct msgb *msg, uint16_t tag, uint16_t len) |
static uint8_t * | msgb_vtvlv_gan_push (struct msgb *msg, uint16_t tag, uint16_t len, const uint8_t *val) |
int | tlv_parse_one (uint8_t *o_tag, uint16_t *o_len, const uint8_t **o_val, const struct tlv_definition *def, const uint8_t *buf, int buf_len) |
| Parse a single TLV encoded IE.
|
int | tlv_parse (struct tlv_parsed *dec, const struct tlv_definition *def, const uint8_t *buf, int buf_len, uint8_t lv_tag, uint8_t lv_tag2) |
| Parse an entire buffer of TLV encoded Information Elements.
|
void | tlv_def_patch (struct tlv_definition *dst, const struct tlv_definition *src) |
| take a master (src) tlvdev and fill up all empty slots in 'dst'
|
static uint16_t | tlvp_val16_unal (const struct tlv_parsed *tp, int pos) |
| Align given TLV element with 16 bit value to an even address.
|
static uint32_t | tlvp_val32_unal (const struct tlv_parsed *tp, int pos) |
| Align given TLV element with 32 bit value to an address that is a multiple of 4.
|
int | tlv_dump (struct tlv_parsed *dec) |
| Dump pasred TLV structure to stdout.
|
static | __attribute__ ((constructor)) |