Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-wap.h
1/* packet-wap.h
2 *
3 * Declarations for WAP packet disassembly
4 *
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <[email protected]>
7 * Copyright 1998 Gerald Combs
8 *
9 * WAP dissector based on original work by Ben Fowler
10 * Updated by Neil Hunter <[email protected]>
11 * WTLS support by Alexandre P. Ferreira (Splice IP)
12 *
13 * SPDX-License-Identifier: GPL-2.0-or-later
14 */
15
16#ifndef __PACKET_WAP_H__
17#define __PACKET_WAP_H__
18
19#include <epan/packet.h>
20#include <epan/expert.h>
21
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 */
32
33/*
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.
45 *
46 * Therefore the dissectors are chained as follows:
47 *
48 * Port Dissectors
49 * 9200 WSP -> WMLC
50 * 9201 WTP -> WSP -> WMLC
51 * 9202 WTLS -> WSP -> WMLC
52 * 9203 WTLS -> WTP -> WSP -> WMLC
53 *
54 * 2948 WSP -> WMLC (Push)
55 * 2949 WTLS -> WSP -> WMLC (Push)
56 *
57 * At present, only the unencrypted parts of WTLS can be analysed. Therefore
58 * the WTP and WSP dissectors are not called.
59 */
60
61/* Utility function for reading Uintvar encoded values */
62unsigned tvb_get_uintvar (tvbuff_t *, unsigned , unsigned *, packet_info *, expert_field *);
63
64/*
65 * Misc TODO:
66 *
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
73 *
74 */
75
76#endif /* packet-wap.h */
Definition packet_info.h:43
Definition expert.h:39
Definition tvbuff-int.h:35