aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tcp.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-tcp.c
parentfe0e0fef2133a996706a1ef6ece3557b32048383 (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-tcp.c')
-rw-r--r--packet-tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-tcp.c b/packet-tcp.c
index f7bef0b6f8..a0e1e7830b 100644
--- a/packet-tcp.c
+++ b/packet-tcp.c
@@ -1,7 +1,7 @@
/* packet-tcp.c
* Routines for TCP packet disassembly
*
- * $Id: packet-tcp.c,v 1.100 2001/02/28 19:33:49 guy Exp $
+ * $Id: packet-tcp.c,v 1.101 2001/03/28 21:33:31 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -558,7 +558,7 @@ dissect_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_uint_format(tcp_tree, hf_tcp_checksum, tvb,
offset + 16, 2, th.th_sum, "Checksum: 0x%04x (correct)", th.th_sum);
} else {
- proto_tree_add_item_hidden(tcp_tree, hf_tcp_checksum_bad, tvb,
+ proto_tree_add_boolean_hidden(tcp_tree, hf_tcp_checksum_bad, tvb,
offset + 16, 2, TRUE);
proto_tree_add_uint_format(tcp_tree, hf_tcp_checksum, tvb,
offset + 16, 2, th.th_sum,