aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-06-29 09:46:54 +0000
committerGuy Harris <guy@alum.mit.edu>2001-06-29 09:46:54 +0000
commit556a11ad45f9f97d52273386290aa7cdae579c5e (patch)
tree146bc0d7a44d8f5d8b5e672a520865b17cf6466d /epan/packet.h
parentc94f0e130b3e4fdb4f4f6fdf82130166fa011392 (diff)
Create a routine to do the tvbuff-length-adjusting and
"pinfo->{len,captured_len}"-adjusting currently done by the IP dissector, make the IP dissector call that rather than doing the work itself, make the IPv6 dissector call that rather than just adjusting the tvbuff length itself, and make the IPX dissector call that rather than just adjusting "pi.{len,captured_len}" itself. This cleans things up a bit, and causes trailers to be properly reported in IPX-over-Ethernet frames. svn path=/trunk/; revision=3621
Diffstat (limited to 'epan/packet.h')
-rw-r--r--epan/packet.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/epan/packet.h b/epan/packet.h
index b3b02cb4d6..31e0dd0eb5 100644
--- a/epan/packet.h
+++ b/epan/packet.h
@@ -1,7 +1,7 @@
/* packet.h
* Definitions for packet disassembly structures and routines
*
- * $Id: packet.h,v 1.34 2001/06/02 08:23:10 guy Exp $
+ * $Id: packet.h,v 1.35 2001/06/29 09:46:54 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -206,6 +206,14 @@ void dissect_init(void);
void dissect_cleanup(void);
+/*
+ * Given a tvbuff, a packet_info *, and a length from a packet header,
+ * adjust the length of the tvbuff, and the "len" and "captured_len"
+ * members of the "packet_info" structure, to reflect the specified
+ * length.
+ */
+void set_actual_length(tvbuff_t *tvb, packet_info *pinfo, guint specified_len);
+
/* Allow protocols to register "init" routines, which are called before
we make a pass through a capture file and dissect all its packets
(e.g., when we read in a new capture file, or run a "filter packets"