aboutsummaryrefslogtreecommitdiffstats
path: root/packet-clip.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-11-20 21:59:18 +0000
committerGuy Harris <guy@alum.mit.edu>2001-11-20 21:59:18 +0000
commite8d4f4f0ac7481c316b3e25a41b1cc747440220e (patch)
treeae3c72a5204d6498a7f2957738be88615f89a115 /packet-clip.c
parent62490b8fdb16d066581c40405cb0d8484248fb09 (diff)
downloadwireshark-e8d4f4f0ac7481c316b3e25a41b1cc747440220e.tar.gz
wireshark-e8d4f4f0ac7481c316b3e25a41b1cc747440220e.tar.bz2
wireshark-e8d4f4f0ac7481c316b3e25a41b1cc747440220e.zip
Make the capture routines take an additional argument giving the amount
of packet data captured. Make the "BYTES_ARE_IN_FRAME()" macro take a "captured length of the packet" argument. Add some length checks to capture routines. svn path=/trunk/; revision=4235
Diffstat (limited to 'packet-clip.c')
-rw-r--r--packet-clip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-clip.c b/packet-clip.c
index 164d3df85d..24aba5e57d 100644
--- a/packet-clip.c
+++ b/packet-clip.c
@@ -1,7 +1,7 @@
/* packet-clip.c
* Routines for clip packet disassembly
*
- * $Id: packet-clip.c,v 1.15 2001/09/23 23:10:30 guy Exp $
+ * $Id: packet-clip.c,v 1.16 2001/11/20 21:59:12 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -43,9 +43,9 @@ static gint ett_clip = -1;
static dissector_handle_t ip_handle;
void
-capture_clip( const u_char *pd, packet_counts *ld ) {
+capture_clip( const u_char *pd, int len, packet_counts *ld ) {
- capture_ip(pd, 0, ld);
+ capture_ip(pd, 0, len, ld);
}
static void