diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-05-01 15:15:08 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-05-01 15:15:08 +0000 |
commit | 9df313ade1fb8de5dd17ba49c577a7d571f61c7c (patch) | |
tree | 9a1acdf9d2c216571cbfd181a679af12cab5d99d /packet-tcp.c | |
parent | d1e353890bf31125607508651bcef1d01f244166 (diff) |
add PROTO_ITEM_SET_HIDDEN() and PROTO_ITEM_SET_GENERATED(),
this sets flags for later rendering of the field data
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10752 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-tcp.c')
-rw-r--r-- | packet-tcp.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packet-tcp.c b/packet-tcp.c index 9ac4896b0a..5a94ce6b4a 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.230 2004/04/30 06:24:35 ulfl Exp $ + * $Id: packet-tcp.c,v 1.231 2004/05/01 15:15:08 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1150,17 +1150,20 @@ tcp_print_sequence_number_analysis(packet_info *pinfo, tvbuff_t *tvb, proto_tree } item=proto_tree_add_text(parent_tree, tvb, 0, 0, "SEQ/ACK analysis"); + PROTO_ITEM_SET_GENERATED(item); tree=proto_item_add_subtree(item, ett_tcp_analysis); /* encapsulate all proto_tree_add_xxx in ifs so we only print what data we actually have */ if(ta->frame_acked){ - proto_tree_add_uint(tree, hf_tcp_analysis_acks_frame, + item = proto_tree_add_uint(tree, hf_tcp_analysis_acks_frame, tvb, 0, 0, ta->frame_acked); + PROTO_ITEM_SET_GENERATED(item); } if( ta->ts.secs || ta->ts.nsecs ){ - proto_tree_add_time(tree, hf_tcp_analysis_ack_rtt, + item = proto_tree_add_time(tree, hf_tcp_analysis_ack_rtt, tvb, 0, 0, &ta->ts); + PROTO_ITEM_SET_GENERATED(item); } if(ta->flags){ |