There's no need to keep a "FILE *" for the file being printed to in a
[obnox/wireshark/wip.git] / packet-frame.h
1 /* packet-frame.h
2  *
3  * Top-most dissector. Decides dissector based on Wiretap Encapsulation Type.
4  *
5  * $Id: packet-frame.h,v 1.7 2003/12/06 06:09:10 gram Exp $
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@ethereal.com>
9  * Copyright 2000 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26 /*
27  * Routine used to add an indication of an arbitrary exception to the tree.
28  */
29 void show_exception(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
30     unsigned long exception);
31
32 /*
33  * Routine used to add an indication of a ReportedBoundsError exception
34  * to the tree.
35  */
36 void
37 show_reported_bounds_error(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
38
39 /*
40  * "Protocol" used for "malformed frame" errors (other than
41  * ReportedBoundsError exceptions).
42  */
43 extern int proto_malformed;
44
45 extern int proto_frame;
46 extern int hf_frame_arrival_time;
47 extern int hf_frame_number;
48 extern int hf_frame_packet_len;
49 extern int hf_frame_capture_len;