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 | 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 | 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 | 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 | 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 | 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 | 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) |
Functions | |
WSP_PDU * | wsp_pdu_create (int type) |
void | wsp_pdu_destroy (WSP_PDU *pdu) |
static int | wsp_pdu_type (Octstr *data) |
WSP_PDU * | wsp_pdu_unpack (Octstr *data) |
static void | fixup_length_fields (WSP_PDU *pdu) |
Octstr * | wsp_pdu_pack (WSP_PDU *pdu) |
void | wsp_pdu_dump (WSP_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 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 |
WSP_PDU* wsp_pdu_create | ( | int | type | ) |
Definition at line 68 of file wsp_pdu.c.
References panic, wsp_pdu::type, and type.
Referenced by make_confirmedpush_pdu(), make_connectreply_pdu(), make_push_pdu(), make_resume_reply_pdu(), pack_into_push_datagram(), pack_into_result_datagram(), and pack_sia().
void wsp_pdu_destroy | ( | WSP_PDU * | pdu | ) |
Definition at line 102 of file wsp_pdu.c.
References panic, and wsp_pdu::type.
Referenced by main(), main_thread(), make_connectreply_pdu(), make_resume_reply_pdu(), pack_into_push_datagram(), pack_into_result_datagram(), pack_sia(), push_client_event_handle(), send_invoke(), and unpack_datagram().
void wsp_pdu_dump | ( | WSP_PDU * | pdu, |
int | level | ||
) |
Definition at line 324 of file wsp_pdu.c.
References debug(), and wsp_pdu::type.
Referenced by main(), and pack_into_push_datagram().
Definition at line 271 of file wsp_pdu.c.
References fixup_length_fields(), octstr_create, panic, and wsp_pdu::type.
Referenced by main(), make_connectreply_pdu(), make_resume_reply_pdu(), pack_into_push_datagram(), pack_into_result_datagram(), pack_sia(), and send_invoke().
|
static |
Definition at line 178 of file wsp_pdu.c.
References gw_assert(), wsp_pdu::type, warning(), and wsp_pdu_type().
Referenced by client_session(), main(), main_thread(), push_client_event_handle(), and unpack_datagram().