|
Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Macros | |
| #define | PDU(name, docstring, fields, is_valid) |
| #define | UINT(field, docstring, bits) p->field = 0; |
| #define | UINTVAR(field, docstring) p->field = 0; |
| #define | OCTSTR(field, docstring, lengthfield) p->field = NULL; |
| #define | REST(field, docstring) p->field = NULL; |
| #define | TYPE(bits, value) |
| #define | RESERVED(bits) |
| #define | TPI(confield) |
| #define | PDU(name, docstring, fields, is_valid) |
| #define | UINT(field, docstring, bits) |
| #define | UINTVAR(field, docstring) |
| #define | OCTSTR(field, docstring, lengthfield) octstr_destroy(p->field); |
| #define | REST(field, docstring) octstr_destroy(p->field); |
| #define | TYPE(bits, value) |
| #define | RESERVED(bits) |
| #define | TPI(confield) |
| #define | PDU(name, docstring, fields, is_valid) |
| #define | UINT(field, docstring, bits) bitpos += (bits); |
| #define | UINTVAR(field, docstring) |
| #define | OCTSTR(field, docstring, lengthfield) |
| #define | REST(field, docstring) |
| #define | TYPE(bits, value) |
| #define | RESERVED(bits) bitpos += (bits); |
| #define | TPI(confield) |
| #define | PDU(name, docstring, fields, is_valid) |
| #define | UINT(field, docstring, bits) |
| #define | UINTVAR(field, docstring) |
| #define | OCTSTR(field, docstring, lengthfield) |
| #define | REST(field, docstring) |
| #define | TYPE(bits, value) bitpos += (bits); |
| #define | RESERVED(bits) bitpos += (bits); |
| #define | TPI(confield) |
| #define | PDU(name, docstring, fields, is_valid) |
| #define | UINT(field, docstring, bits) |
| #define | UINTVAR(field, docstring) |
| #define | OCTSTR(field, docstring, lengthfield) p->lengthfield = octstr_len(p->field); |
| #define | REST(field, docstring) |
| #define | TYPE(bits, value) |
| #define | RESERVED(bits) |
| #define | TPI(confield) p->confield = pdu->options != NULL && gwlist_len(pdu->options) > 0; |
| #define | PDU(name, docstring, fields, is_valid) |
| #define | UINT(field, docstring, bits) |
| #define | UINTVAR(field, docstring) |
| #define | OCTSTR(field, docstring, lengthfield) |
| #define | REST(field, docstring) |
| #define | TYPE(bits, value) |
| #define | RESERVED(bits) bitpos += (bits); |
| #define | TPI(confield) |
| #define | PDU(name, docstring, fields, is_valid) |
| #define | UINT(field, docstring, bits) debug(dbg, 0, "%*s %s: %lu", level, "", docstring, p->field); |
| #define | UINTVAR(field, docstring) debug(dbg, 0, "%*s %s: %lu", level, "", docstring, p->field); |
| #define | OCTSTR(field, docstring, lengthfield) |
| #define | REST(field, docstring) |
| #define | TYPE(bits, value) |
| #define | RESERVED(bits) |
| #define | TPI(confield) dump_tpis(pdu->options, level); |
Functions | |
| WTP_PDU * | wtp_pdu_create (int type) |
| void | wtp_pdu_destroy (WTP_PDU *pdu) |
| void | wtp_tpi_destroy (WTP_TPI *p) |
| void | wtp_pdu_append_tpi (WTP_PDU *pdu, int type, Octstr *data) |
| static long | unpack_tpis (Octstr *data, long bitpos, WTP_PDU *pdu) |
| static long | pack_tpis (Octstr *data, long bitpos, List *tpis) |
| static void | dump_tpis (List *tpis, int level) |
| static int | wtp_pdu_type (Octstr *data) |
| WTP_PDU * | wtp_pdu_unpack (Octstr *data) |
| static void | fixup_length_fields (WTP_PDU *pdu) |
| Octstr * | wtp_pdu_pack (WTP_PDU *pdu) |
| void | wtp_pdu_dump (WTP_PDU *pdu, int level) |
| #define OCTSTR | ( | field, | |
| docstring, | |||
| lengthfield | |||
| ) | p->field = NULL; |
| #define OCTSTR | ( | field, | |
| docstring, | |||
| lengthfield | |||
| ) | octstr_destroy(p->field); |
| #define OCTSTR | ( | field, | |
| docstring, | |||
| lengthfield | |||
| ) |
| #define OCTSTR | ( | field, | |
| docstring, | |||
| lengthfield | |||
| ) |
| #define OCTSTR | ( | field, | |
| docstring, | |||
| lengthfield | |||
| ) | p->lengthfield = octstr_len(p->field); |
| #define OCTSTR | ( | field, | |
| docstring, | |||
| lengthfield | |||
| ) |
| #define OCTSTR | ( | field, | |
| docstring, | |||
| lengthfield | |||
| ) |
| #define PDU | ( | name, | |
| docstring, | |||
| fields, | |||
| is_valid | |||
| ) |
| #define PDU | ( | name, | |
| docstring, | |||
| fields, | |||
| is_valid | |||
| ) |
| #define PDU | ( | name, | |
| docstring, | |||
| fields, | |||
| is_valid | |||
| ) |
| #define PDU | ( | name, | |
| docstring, | |||
| fields, | |||
| is_valid | |||
| ) |
| #define PDU | ( | name, | |
| docstring, | |||
| fields, | |||
| is_valid | |||
| ) |
| #define PDU | ( | name, | |
| docstring, | |||
| fields, | |||
| is_valid | |||
| ) |
| #define PDU | ( | name, | |
| docstring, | |||
| fields, | |||
| is_valid | |||
| ) |
| #define RESERVED | ( | bits | ) |
| #define RESERVED | ( | bits | ) |
| #define RESERVED | ( | bits | ) | bitpos += (bits); |
| #define RESERVED | ( | bits | ) | bitpos += (bits); |
| #define RESERVED | ( | bits | ) |
| #define RESERVED | ( | bits | ) | bitpos += (bits); |
| #define RESERVED | ( | bits | ) |
| #define REST | ( | field, | |
| docstring | |||
| ) | p->field = NULL; |
| #define REST | ( | field, | |
| docstring | |||
| ) | octstr_destroy(p->field); |
| #define REST | ( | field, | |
| docstring | |||
| ) |
| #define REST | ( | field, | |
| docstring | |||
| ) |
| #define REST | ( | field, | |
| docstring | |||
| ) |
| #define REST | ( | field, | |
| docstring | |||
| ) |
| #define REST | ( | field, | |
| docstring | |||
| ) |
| #define TPI | ( | confield | ) |
| #define TPI | ( | confield | ) |
| #define TPI | ( | confield | ) |
| #define TPI | ( | confield | ) |
| #define TPI | ( | confield | ) | p->confield = pdu->options != NULL && gwlist_len(pdu->options) > 0; |
| #define TPI | ( | confield | ) |
| #define TYPE | ( | bits, | |
| value | |||
| ) |
| #define TYPE | ( | bits, | |
| value | |||
| ) |
| #define TYPE | ( | bits, | |
| value | |||
| ) |
| #define TYPE | ( | bits, | |
| value | |||
| ) | bitpos += (bits); |
| #define TYPE | ( | bits, | |
| value | |||
| ) |
| #define TYPE | ( | bits, | |
| value | |||
| ) |
| #define TYPE | ( | bits, | |
| value | |||
| ) |
| #define UINT | ( | field, | |
| docstring, | |||
| bits | |||
| ) | p->field = 0; |
| #define UINT | ( | field, | |
| docstring, | |||
| bits | |||
| ) |
| #define UINT | ( | field, | |
| docstring, | |||
| bits | |||
| ) | bitpos += (bits); |
| #define UINT | ( | field, | |
| docstring, | |||
| bits | |||
| ) |
| #define UINT | ( | field, | |
| docstring, | |||
| bits | |||
| ) |
| #define UINT | ( | field, | |
| docstring, | |||
| bits | |||
| ) |
| #define UINT | ( | field, | |
| docstring, | |||
| bits | |||
| ) | debug(dbg, 0, "%*s %s: %lu", level, "", docstring, p->field); |
| #define UINTVAR | ( | field, | |
| docstring | |||
| ) | p->field = 0; |
| #define UINTVAR | ( | field, | |
| docstring | |||
| ) |
| #define UINTVAR | ( | field, | |
| docstring | |||
| ) |
| #define UINTVAR | ( | field, | |
| docstring | |||
| ) |
| #define UINTVAR | ( | field, | |
| docstring | |||
| ) |
| #define UINTVAR | ( | field, | |
| docstring | |||
| ) |
| #define UINTVAR | ( | field, | |
| docstring | |||
| ) | debug(dbg, 0, "%*s %s: %lu", level, "", docstring, p->field); |
|
static |
Definition at line 222 of file wtp_pdu.c.
References wtp_tpi::data, debug(), gwlist_get(), gwlist_len(), octstr_dump, and wtp_tpi::type.
|
static |
Definition at line 191 of file wtp_pdu.c.
References wtp_tpi::data, gw_assert(), gwlist_get(), gwlist_len(), octstr_append(), octstr_len(), octstr_set_bits(), and wtp_tpi::type.
Definition at line 164 of file wtp_pdu.c.
References gw_assert(), octstr_copy, octstr_get_bits(), type, and wtp_pdu_append_tpi().
Definition at line 153 of file wtp_pdu.c.
References wtp_tpi::data, gwlist_append(), gwlist_create, wtp_pdu::options, wtp_tpi::type, and type.
Referenced by unpack_tpis(), and wtp_pack_sar_ack().
| WTP_PDU* wtp_pdu_create | ( | int | type | ) |
Definition at line 67 of file wtp_pdu.c.
References wtp_pdu::options, wtp_pdu::type, type, and warning().
Referenced by wtp_pack_abort(), wtp_pack_ack(), wtp_pack_invoke(), wtp_pack_result(), wtp_pack_sar_ack(), and wtp_pack_sar_result().
| void wtp_pdu_destroy | ( | WTP_PDU * | pdu | ) |
Definition at line 104 of file wtp_pdu.c.
References gwlist_consume(), gwlist_destroy(), gwlist_len(), wtp_pdu::options, wtp_pdu::type, warning(), and wtp_tpi_destroy().
Referenced by main(), unpack_wdp_datagram_real(), wtp_pack_abort(), wtp_pack_ack(), wtp_pack_invoke(), wtp_pack_result(), wtp_pack_sar_ack(), and wtp_pack_sar_result().
| void wtp_pdu_dump | ( | WTP_PDU * | pdu, |
| int | level | ||
| ) |
Definition at line 446 of file wtp_pdu.c.
References debug(), and wtp_pdu::type.
Referenced by main().
Definition at line 388 of file wtp_pdu.c.
References fixup_length_fields(), octstr_create, panic, and wtp_pdu::type.
Referenced by main(), wtp_pack_abort(), wtp_pack_ack(), wtp_pack_invoke(), wtp_pack_result(), wtp_pack_sar_ack(), and wtp_pack_sar_result().
|
static |
Definition at line 284 of file wtp_pdu.c.
References gw_assert(), wtp_pdu::options, wtp_pdu::type, warning(), and wtp_pdu_type().
Referenced by main(), and unpack_wdp_datagram_real().
| void wtp_tpi_destroy | ( | WTP_TPI * | p | ) |
Definition at line 145 of file wtp_pdu.c.
References wtp_tpi::data, and octstr_destroy().
Referenced by wtp_pdu_destroy().