diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-28 05:42:25 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-28 05:42:25 +0000 |
commit | 2d90dee23f7308fa4663914a08e2220bb491a368 (patch) | |
tree | 2509ee2f8ed150ee4cd8b0c3867d7a3f550245a8 /epan/dissectors/packet-tcp.c | |
parent | b5e6772a16000879dcc3cdb8d2e5968c129b2256 (diff) |
From Edwin Groothuis:
Add preference to Mute noise of TCP Timestamp Option in the summary line.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6162
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38232 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-tcp.c')
-rw-r--r-- | epan/dissectors/packet-tcp.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tcp.c b/epan/dissectors/packet-tcp.c index f67e1753a9..af36b55e0d 100644 --- a/epan/dissectors/packet-tcp.c +++ b/epan/dissectors/packet-tcp.c @@ -2442,6 +2442,9 @@ dissect_tcpopt_echo(const ip_tcp_opt *optp, tvbuff_t *tvb, tcp_info_append_uint(pinfo, "ECHO", echo); } +/* If set, do not put the TCP timestamp information on the summary line */ +static gboolean tcp_ignore_timestamps = FALSE; + static void dissect_tcpopt_timestamp(const ip_tcp_opt *optp _U_, tvbuff_t *tvb, int offset, guint optlen _U_, packet_info *pinfo, proto_tree *opt_tree) @@ -2470,8 +2473,10 @@ dissect_tcpopt_timestamp(const ip_tcp_opt *optp _U_, tvbuff_t *tvb, offset += 4; proto_item_append_text(ti, "TSval %u, TSecr %u", ts_val, ts_ecr); - tcp_info_append_uint(pinfo, "TSval", ts_val); - tcp_info_append_uint(pinfo, "TSecr", ts_ecr); + if (tcp_ignore_timestamps == FALSE) { + tcp_info_append_uint(pinfo, "TSval", ts_val); + tcp_info_append_uint(pinfo, "TSecr", ts_ecr); + } } static void @@ -5178,6 +5183,10 @@ proto_register_tcp(void) "Try heuristic sub-dissectors first", "Try to decode a packet using an heuristic sub-dissector before using a sub-dissector registered to a specific port", &try_heuristic_first); + prefs_register_bool_preference(tcp_module, "ignore_tcp_timestamps", + "Ignore TCP Timestamps in summary", + "Do not place the TCP Timestamps in the summary line", + &tcp_ignore_timestamps); register_init_routine(tcp_init); } |