diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-11-20 21:59:18 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-11-20 21:59:18 +0000 |
commit | e8d4f4f0ac7481c316b3e25a41b1cc747440220e (patch) | |
tree | ae3c72a5204d6498a7f2957738be88615f89a115 /packet-ip.h | |
parent | 62490b8fdb16d066581c40405cb0d8484248fb09 (diff) |
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-ip.h')
-rw-r--r-- | packet-ip.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packet-ip.h b/packet-ip.h index 3436f95e17..aa9265bfd3 100644 --- a/packet-ip.h +++ b/packet-ip.h @@ -1,12 +1,11 @@ /* packet-ip.h * Definitions for IP packet disassembly structures and routines * - * $Id: packet-ip.h,v 1.19 2001/04/23 17:51:33 guy Exp $ + * $Id: packet-ip.h,v 1.20 2001/11/20 21:59:12 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> * Copyright 1998 Gerald Combs - * * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -27,7 +26,7 @@ #ifndef __PACKET_IP_H__ #define __PACKET_IP_H__ -void capture_ip(const u_char *, int, packet_counts *); +void capture_ip(const u_char *, int, int, packet_counts *); typedef enum { NO_LENGTH, /* option has no data, hence no length */ |