3 * Declarations for WAP packet disassembly
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * WAP dissector based on original work by Ben Fowler
12 * Updated by Neil Hunter <neil.hunter@energis-squared.com>
13 * WTLS support by Alexandre P. Ferreira (Splice IP)
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
30 #ifndef __PACKET_WAP_H__
31 #define __PACKET_WAP_H__
34 #include <epan/packet.h>
36 /* Port Numbers as per IANA */
37 /* < URL:http://www.iana.org/assignments/port-numbers/ > */
38 #define UDP_PORT_WSP 9200 /* wap-wsp */
39 #define UDP_PORT_WTP_WSP 9201 /* wap-wsp-wtp */
40 #define UDP_PORT_WTLS_WSP 9202 /* wap-wsp-s */
41 #define UDP_PORT_WTLS_WTP_WSP 9203 /* wap-wsp-wtp-s */
42 #define UDP_PORT_WSP_PUSH 2948 /* wap-wsp */
43 #define UDP_PORT_WTLS_WSP_PUSH 2949 /* wap-wsp-s */
47 * There are four dissectors for the WAP protocol:
52 * Which of these are necessary is determined by the port number above.
53 * I.e. port 9200 (wap-wsp) indicates WSP data and possibly WMLC (depending on
55 * Port 9203 (wap-wsp-wtp-s), on the other hand, has WTLS, WTP, WSP and
56 * possibly WMLC data in that order in the packet.
58 * Therefore the dissectors are chained as follows:
62 * 9201 WTP -> WSP -> WMLC
63 * 9202 WTLS -> WSP -> WMLC
64 * 9203 WTLS -> WTP -> WSP -> WMLC
66 * 2948 WSP -> WMLC (Push)
67 * 2949 WTLS -> WSP -> WMLC (Push)
69 * At present, only the unencrypted parts of WTLS can be analysed. Therefore
70 * the WTP and WSP dissectors are not called.
73 #define HF_EMPTY ( -1 )
74 #define ETT_EMPTY ( -1 )
76 /* Utility function for reading Uintvar encoded values */
77 guint
tvb_get_guintvar (tvbuff_t
*, guint
, guint
*);
79 /* Character set encoding */
80 extern value_string_ext wap_mib_enum_vals_character_sets_ext
;
86 * Check Protocol display
87 * Check Protocol information display
88 * Check CONNECT/CONNECT REPLY headers
89 * Check add_headers code
90 * Check Content-Length code
94 #endif /* packet-wap.h */