diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-01-22 20:43:17 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-01-22 20:43:17 +0000 |
commit | 03e22964896cc63c8db200e3ae15d52e834d0894 (patch) | |
tree | f6610e44a3bbbeeef24829137613c75a53543b62 /packet-udp.h | |
parent | c91bc4477cd628f37e2855fc63f94b496c524e02 (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).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9782 f5534014-38df-0310-8fa8-9805f1628bb7
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 |