diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-01-22 20:43:17 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-01-22 20:43:17 +0000 |
commit | 433524da93fc30b7a869ba7c8e78d8d7a8166d19 (patch) | |
tree | f6610e44a3bbbeeef24829137613c75a53543b62 /packet-udp.h | |
parent | 89e496d1ab23e1cc2733fba954243439308df46f (diff) |
Use the length field in the UDP header:
if it's < 8, don't dissect anything past the length field (the
length must be >= 8);
otherwise, if it's less than the data or reported length from
the tvbuff, use the length from the header;
otherwise, don't checksum the packet (if it's greater than the
reported length, and the packet isn't fragmented, we should
somehow report that as an error).
svn path=/trunk/; revision=9782
Diffstat (limited to 'packet-udp.h')
-rw-r--r-- | packet-udp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-udp.h b/packet-udp.h index 45a967d293..c157b9693a 100644 --- a/packet-udp.h +++ b/packet-udp.h @@ -1,6 +1,6 @@ /* packet-udp.h * - * $Id: packet-udp.h,v 1.8 2003/08/23 09:09:33 sahlberg Exp $ + * $Id: packet-udp.h,v 1.9 2004/01/22 20:43:17 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -37,6 +37,6 @@ typedef struct _e_udphdr { extern void decode_udp_ports(tvbuff_t *, int, packet_info *, - proto_tree *, int, int); + proto_tree *, int, int, int); #endif |