From Richard Urwin a great enhancement to the color filter dialogue to
[obnox/wireshark/wip.git] / packet-wtp.h
1 /* packet-wtp.h
2  *
3  * Declarations for disassembly of WTP component of WAP traffic.
4  *
5  * $Id: packet-wtp.h,v 1.4 2002/08/28 21:00:39 jmayer Exp $
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@zing.org>
9  * Copyright 1998 Gerald Combs
10  *
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)
14  *
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.
19  *
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.
24  *
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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
28  */
29
30 #ifndef __PACKET_WTP_H__
31 #define __PACKET_WTP_H__
32
33 /* Implementation Status:
34  *
35  * All fixed headers decoded for non-concatenated PDUs.
36  *
37  * TODO:
38  *      Support for concatenated PDUs
39  *      Support for decoding TPIs in variable header
40  */
41
42 /* WTP PDU Types
43    See section 9.1 (p. 40) of spec-wtp-19990611.pdf
44 */
45
46 enum {
47         ERRONEOUS                       = -0x01,
48         NOT_ALLOWED                     = 0x00,
49         INVOKE                          = 0x01,
50         RESULT                          = 0x02,
51         ACK                                     = 0x03,
52         ABORT                           = 0x04,
53         SEGMENTED_INVOKE        = 0x05,
54         SEGMENTED_RESULT        = 0x06,
55         NEGATIVE_ACK            = 0x07
56 };
57
58 enum {
59         PROVIDER                        = 0x00,
60         USER                            = 0x01
61 };
62
63 #endif /* packet-wtp.h */