2000-10-06 10:11:40 +00:00
|
|
|
/* packet-frame.h
|
|
|
|
*
|
|
|
|
* Top-most dissector. Decides dissector based on Wiretap Encapsulation Type.
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2000-10-06 10:11:40 +00:00
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2000-10-06 10:11:40 +00:00
|
|
|
* Copyright 2000 Gerald Combs
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-10-06 10:11:40 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-10-06 10:11:40 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-10-06 10:11:40 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2003-10-23 05:01:39 +00:00
|
|
|
/*
|
|
|
|
* Routine used to add an indication of an arbitrary exception to the tree.
|
|
|
|
*/
|
|
|
|
void show_exception(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
2005-09-28 16:16:37 +00:00
|
|
|
unsigned long exception, const char *exception_message);
|
2003-10-23 05:01:39 +00:00
|
|
|
|
Add support for reassembling RPC-over-TCP fragments, and do that in both
RPC and NDMP.
Show the RPC-over-TCP fragment header as a tree with bitfields below it.
Add a routine to show a reported bounds error as an "Unreassembled
Packet" or a "Malformed Packet" depending on whether "pinfo->fragmented"
is set, and have NBNS and RPC use that.
Add "ett_ndmp_file_stats" to the list of ett_ values to be initialized
(it wasn't in that list, and wasn't getting initialized).
When freeing up various hash tables and memory chunks in the RPC
dissector, zero out the pointers to them, just to make sure we don't try
to free them again.
Always destroy the TCP segment key and address memory chunks in
"tcp_desegment_init()", regardless of whether TCP desegmentation is
enabled - we don't *allocate* them if TCP desegmentation isn't enabled,
but we should free them even if it's not enabled. Also, when we free
them, set the pointers to them to null, so we don't double-free them.
Supply to subdissectors called from the TCP dissector the sequence
number of the first byte handed to the sub dissector.
svn path=/trunk/; revision=4753
2002-02-18 23:51:55 +00:00
|
|
|
/*
|
|
|
|
* Routine used to add an indication of a ReportedBoundsError exception
|
|
|
|
* to the tree.
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
show_reported_bounds_error(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
|
|
|
|
|
2005-12-16 00:32:12 +00:00
|
|
|
/*
|
|
|
|
* Routine used to register frame end routine. The routine should only
|
|
|
|
* be registred when the dissector is used in the frame, not in the
|
|
|
|
* proto_register_XXX function.
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
register_frame_end_routine(void (*func)(void));
|
|
|
|
|
Add support for reassembling RPC-over-TCP fragments, and do that in both
RPC and NDMP.
Show the RPC-over-TCP fragment header as a tree with bitfields below it.
Add a routine to show a reported bounds error as an "Unreassembled
Packet" or a "Malformed Packet" depending on whether "pinfo->fragmented"
is set, and have NBNS and RPC use that.
Add "ett_ndmp_file_stats" to the list of ett_ values to be initialized
(it wasn't in that list, and wasn't getting initialized).
When freeing up various hash tables and memory chunks in the RPC
dissector, zero out the pointers to them, just to make sure we don't try
to free them again.
Always destroy the TCP segment key and address memory chunks in
"tcp_desegment_init()", regardless of whether TCP desegmentation is
enabled - we don't *allocate* them if TCP desegmentation isn't enabled,
but we should free them even if it's not enabled. Also, when we free
them, set the pointers to them to null, so we don't double-free them.
Supply to subdissectors called from the TCP dissector the sequence
number of the first byte handed to the sub dissector.
svn path=/trunk/; revision=4753
2002-02-18 23:51:55 +00:00
|
|
|
/*
|
|
|
|
* "Protocol" used for "malformed frame" errors (other than
|
|
|
|
* ReportedBoundsError exceptions).
|
|
|
|
*/
|
2000-12-03 22:32:10 +00:00
|
|
|
extern int proto_malformed;
|
2003-12-06 06:09:13 +00:00
|
|
|
|
2006-05-21 04:49:01 +00:00
|
|
|
/* following variables are exported from libwireshark.dll.
|
2004-07-29 00:11:14 +00:00
|
|
|
* Thus we need a special declaration.
|
|
|
|
*/
|
|
|
|
ETH_VAR_IMPORT int proto_frame;
|
|
|
|
ETH_VAR_IMPORT int hf_frame_arrival_time;
|
|
|
|
ETH_VAR_IMPORT int hf_frame_number;
|
|
|
|
ETH_VAR_IMPORT int hf_frame_packet_len;
|
|
|
|
ETH_VAR_IMPORT int hf_frame_capture_len;
|