diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-03-28 21:33:31 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-03-28 21:33:31 +0000 |
commit | d8f688ea26cf129c9324a520841da1712329908e (patch) | |
tree | 4f453ab15cacd46cf7bfe059ec1daec96c238078 /packet-ip.c | |
parent | fe0e0fef2133a996706a1ef6ece3557b32048383 (diff) |
Use "proto_tree_add_boolean_hidden()", not
"proto_tree_add_item_hidden()", to add the "checksum bad" flags to
packets; the value should be "TRUE", not the numerical value of the
checksum field.
svn path=/trunk/; revision=3202
Diffstat (limited to 'packet-ip.c')
-rw-r--r-- | packet-ip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-ip.c b/packet-ip.c index bbfbf949f7..dfe656ca0b 100644 --- a/packet-ip.c +++ b/packet-ip.c @@ -1,7 +1,7 @@ /* packet-ip.c * Routines for IP and miscellaneous IP protocol packet disassembly * - * $Id: packet-ip.c,v 1.128 2001/03/28 06:20:22 guy Exp $ + * $Id: packet-ip.c,v 1.129 2001/03/28 21:33:31 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -906,7 +906,7 @@ dissect_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) "Header checksum: 0x%04x (correct)", iph.ip_sum); } else { - proto_tree_add_item_hidden(ip_tree, hf_ip_checksum_bad, tvb, offset + 10, 2, TRUE); + proto_tree_add_boolean_hidden(ip_tree, hf_ip_checksum_bad, tvb, offset + 10, 2, TRUE); proto_tree_add_uint_format(ip_tree, hf_ip_checksum, tvb, offset + 10, 2, iph.ip_sum, "Header checksum: 0x%04x (incorrect, should be 0x%04x)", iph.ip_sum, in_cksum_shouldbe(iph.ip_sum, ipsum)); @@ -1133,7 +1133,7 @@ dissect_icmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) cksum, "Checksum: 0x%04x (correct)", cksum); } else { - proto_tree_add_item_hidden(icmp_tree, hf_icmp_checksum_bad, + proto_tree_add_boolean_hidden(icmp_tree, hf_icmp_checksum_bad, tvb, 2, 2, TRUE); proto_tree_add_uint_format(icmp_tree, hf_icmp_checksum, tvb, 2, 2, cksum, |