epan/dissectors/pidl/samr/samr.cnf cnf_dissect_lsa_BinaryString => lsarpc_dissect_str...
[wireshark-sm.git] / epan / dissectors / packet-wap.h
blob63983ec478a5ad8a614fcfd1b67300303835712b
1 /* packet-wap.h
3 * Declarations for WAP packet disassembly
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * WAP dissector based on original work by Ben Fowler
10 * Updated by Neil Hunter <neil.hunter@energis-squared.com>
11 * WTLS support by Alexandre P. Ferreira (Splice IP)
13 * SPDX-License-Identifier: GPL-2.0-or-later
16 #ifndef __PACKET_WAP_H__
17 #define __PACKET_WAP_H__
19 #include <epan/packet.h>
20 #include <epan/expert.h>
22 /* Port Numbers as per IANA */
23 /* < URL:http://www.iana.org/assignments/port-numbers/ > */
24 #define UDP_PORT_WSP 9200 /* wap-wsp */
25 #define UDP_PORT_WSP_RANGE "2948,9200" /* wap-wsp */
26 #define UDP_PORT_WTP_WSP 9201 /* wap-wsp-wtp */
27 #define UDP_PORT_WTLS_WSP 9202 /* wap-wsp-s */
28 #define UDP_PORT_WTLS_WTP_WSP 9203 /* wap-wsp-wtp-s */
29 #define UDP_PORT_WSP_PUSH 2948 /* wap-wsp */
30 #define UDP_PORT_WTLS_WSP_PUSH 2949 /* wap-wsp-s */
31 #define UDP_PORT_WTLS_RANGE "2949,9202-9203" /* wap-wsp */
34 * Note:
35 * There are four dissectors for the WAP protocol:
36 * WTLS
37 * WTP
38 * WSP
39 * WMLC
40 * Which of these are necessary is determined by the port number above.
41 * I.e. port 9200 (wap-wsp) indicates WSP data and possibly WMLC (depending on
42 * the WSP PDU).
43 * Port 9203 (wap-wsp-wtp-s), on the other hand, has WTLS, WTP, WSP and
44 * possibly WMLC data in that order in the packet.
46 * Therefore the dissectors are chained as follows:
48 * Port Dissectors
49 * 9200 WSP -> WMLC
50 * 9201 WTP -> WSP -> WMLC
51 * 9202 WTLS -> WSP -> WMLC
52 * 9203 WTLS -> WTP -> WSP -> WMLC
54 * 2948 WSP -> WMLC (Push)
55 * 2949 WTLS -> WSP -> WMLC (Push)
57 * At present, only the unencrypted parts of WTLS can be analysed. Therefore
58 * the WTP and WSP dissectors are not called.
61 /* Utility function for reading Uintvar encoded values */
62 unsigned tvb_get_uintvar (tvbuff_t *, unsigned , unsigned *, packet_info *, expert_field *);
65 * Misc TODO:
67 * WMLC Dissector
68 * Check Protocol display
69 * Check Protocol information display
70 * Check CONNECT/CONNECT REPLY headers
71 * Check add_headers code
72 * Check Content-Length code
76 #endif /* packet-wap.h */