| 
    Kannel: Open Source WAP and SMS gateway
    svn-r5336
    
   | 
 
Go to the source code of this file.
Enumerations | |
| enum | { first_byte, second_byte, third_byte, fourth_byte } | 
| enum | {  ERROR_DATA = 0x00, INFO_DATA = 0x01, OPTION = 0x02, PACKET_SEQUENCE_NUMBER = 0x03, SDU_BOUNDARY = 0x04, FRAME_BOUNDARY = 0x05 }  | 
Functions | |
| static unsigned short | send_tid (unsigned short tid) | 
| WAPEvent * | wtp_pack_invoke (WTPInitMachine *machine, WAPEvent *event) | 
| WAPEvent * | wtp_pack_result (WTPRespMachine *machine, WAPEvent *event) | 
| WAPEvent * | wtp_pack_sar_result (WTPRespMachine *machine, int psn) | 
| void | wtp_pack_set_rid (WAPEvent *dgram, long rid) | 
| WAPEvent * | wtp_pack_abort (long abort_type, long abort_reason, long tid, WAPAddrTuple *address) | 
| WAPEvent * | wtp_pack_ack (long ack_type, int rid_flag, long tid, WAPAddrTuple *address) | 
| WAPEvent * | wtp_pack_sar_ack (long ack_type, long tid, WAPAddrTuple *address, int psn) | 
| anonymous enum | 
| Enumerator | |
|---|---|
| first_byte | |
| second_byte | |
| third_byte | |
| fourth_byte | |
Definition at line 71 of file wtp_pack.c.
| anonymous enum | 
| Enumerator | |
|---|---|
| ERROR_DATA | |
| INFO_DATA | |
| OPTION | |
| PACKET_SEQUENCE_NUMBER | |
| SDU_BOUNDARY | |
| FRAME_BOUNDARY | |
Definition at line 82 of file wtp_pack.c.
      
  | 
  static | 
Definition at line 291 of file wtp_pack.c.
Referenced by wtp_pack_abort(), wtp_pack_ack(), wtp_pack_invoke(), wtp_pack_result(), wtp_pack_sar_ack(), and wtp_pack_sar_result().
| WAPEvent* wtp_pack_abort | ( | long | abort_type, | 
| long | abort_reason, | ||
| long | tid, | ||
| WAPAddrTuple * | address | ||
| ) | 
Definition at line 223 of file wtp_pack.c.
References send_tid(), WAPEvent::u, wtp_pdu::u, wap_addr_tuple_duplicate(), wap_event_create, wtp_pdu_create(), wtp_pdu_destroy(), and wtp_pdu_pack().
Referenced by handle_wrong_version(), init_machine_find_or_create(), and send_abort().
| WAPEvent* wtp_pack_ack | ( | long | ack_type, | 
| int | rid_flag, | ||
| long | tid, | ||
| WAPAddrTuple * | address | ||
| ) | 
Definition at line 243 of file wtp_pack.c.
References send_tid(), WAPEvent::u, wtp_pdu::u, wap_addr_tuple_duplicate(), wap_event_create, wtp_pdu_create(), wtp_pdu_destroy(), and wtp_pdu_pack().
Referenced by send_ack().
| WAPEvent* wtp_pack_invoke | ( | WTPInitMachine * | machine, | 
| WAPEvent * | event | ||
| ) | 
Definition at line 115 of file wtp_pack.c.
References gw_assert(), octstr_duplicate, send_tid(), WAPEvent::type, WAPEvent::u, wtp_pdu::u, wap_addr_tuple_duplicate(), wap_event_create, wtp_pdu_create(), wtp_pdu_destroy(), and wtp_pdu_pack().
| WAPEvent* wtp_pack_result | ( | WTPRespMachine * | machine, | 
| WAPEvent * | event | ||
| ) | 
Definition at line 143 of file wtp_pack.c.
References gw_assert(), octstr_duplicate, send_tid(), WAPEvent::type, WAPEvent::u, wtp_pdu::u, wap_addr_tuple_duplicate(), wap_event_create, wtp_pdu_create(), wtp_pdu_destroy(), and wtp_pdu_pack().
| WAPEvent* wtp_pack_sar_ack | ( | long | ack_type, | 
| long | tid, | ||
| WAPAddrTuple * | address, | ||
| int | psn | ||
| ) | 
Definition at line 263 of file wtp_pack.c.
References octstr_create_from_data, send_tid(), WAPEvent::u, wtp_pdu::u, wap_addr_tuple_duplicate(), wap_event_create, wtp_pdu_append_tpi(), wtp_pdu_create(), wtp_pdu_destroy(), and wtp_pdu_pack().
Referenced by process_sar_transaction().
| WAPEvent* wtp_pack_sar_result | ( | WTPRespMachine * | machine, | 
| int | psn | ||
| ) | 
Definition at line 167 of file wtp_pack.c.
References gw_assert(), octstr_copy, SAR_GROUP_LEN, SAR_SEGM_SIZE, send_tid(), WAPEvent::u, wtp_pdu::u, wap_addr_tuple_duplicate(), wap_event_create, wtp_pdu_create(), wtp_pdu_destroy(), and wtp_pdu_pack().
Referenced by begin_sar_result(), continue_sar_result(), and resend_sar_result().
| void wtp_pack_set_rid | ( | WAPEvent * | dgram, | 
| long | rid | ||
| ) | 
Definition at line 215 of file wtp_pack.c.
References gw_assert(), octstr_set_bits(), WAPEvent::type, and WAPEvent::u.
Referenced by resend_sar_result().