In HTTP-over-TCP, handle more than one HTTP message in a TCP segment.
[obnox/wireshark/wip.git] / packet-wsp.h
1 /* packet-wsp.h
2  *
3  * Declarations for disassembly of WSP component of WAP traffic.
4  *
5  * $Id: packet-wsp.h,v 1.9 2003/11/03 10:16:00 guy Exp $
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@ethereal.com>
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_WSP_H__
31 #define __PACKET_WSP_H__
32
33
34 /* These reason codes are used in the WTP dissector as the WTP user is
35  * assumed to be WSP */
36 extern const value_string vals_wsp_reason_codes[];
37
38 /* These are exported to taps. */
39 extern const value_string vals_pdu_type[];
40 extern const value_string vals_status[];
41
42 /*
43  * exported functionality
44  */
45 void add_post_data (proto_tree *, tvbuff_t *, guint, const char *);
46 guint32 add_content_type (proto_tree *tree, tvbuff_t *tvb,
47                 guint32 val_start,
48                 guint32 *well_known_content, const char **textual_content);
49
50 /* statistics */
51 typedef struct _wsp_info_value_t        /* see README.tapping and tap-wspstat.c */
52 {
53         gint status_code;               
54         guint8 pdut;
55 } wsp_info_value_t;
56 #endif /* packet-wsp.h */