aboutsummaryrefslogtreecommitdiffstats
path: root/packet-udp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-03-28 21:33:31 +0000
committerGuy Harris <guy@alum.mit.edu>2001-03-28 21:33:31 +0000
commitd8f688ea26cf129c9324a520841da1712329908e (patch)
tree4f453ab15cacd46cf7bfe059ec1daec96c238078 /packet-udp.c
parentfe0e0fef2133a996706a1ef6ece3557b32048383 (diff)
downloadwireshark-d8f688ea26cf129c9324a520841da1712329908e.tar.gz
wireshark-d8f688ea26cf129c9324a520841da1712329908e.tar.bz2
wireshark-d8f688ea26cf129c9324a520841da1712329908e.zip
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-udp.c')
-rw-r--r--packet-udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-udp.c b/packet-udp.c
index 4609ebf216..5d07d8702c 100644
--- a/packet-udp.c
+++ b/packet-udp.c
@@ -1,7 +1,7 @@
/* packet-udp.c
* Routines for UDP packet disassembly
*
- * $Id: packet-udp.c,v 1.88 2001/02/28 19:33:49 guy Exp $
+ * $Id: packet-udp.c,v 1.89 2001/03/28 21:33:31 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -193,7 +193,7 @@ dissect_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_uint_format(udp_tree, hf_udp_checksum, tvb,
offset + 6, 2, uh_sum, "Checksum: 0x%04x (correct)", uh_sum);
} else {
- proto_tree_add_item_hidden(udp_tree, hf_udp_checksum_bad, tvb,
+ proto_tree_add_boolean_hidden(udp_tree, hf_udp_checksum_bad, tvb,
offset + 6, 2, TRUE);
proto_tree_add_uint_format(udp_tree, hf_udp_checksum, tvb,
offset + 6, 2, uh_sum,