THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

How to display mss value in decimal as column

Guess I'm missing some tiny thing but so far I can only display the value in hex. Is there any way to achieve that? Thanks.

ebo's avatar
1
ebo
asked 2022-05-15 16:13:34 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

There are TCP fields for tcp.options.mss and tcp.options.mss_val.
tcp.options.mss_val is BASE_DEC.

packet-tcp.c:

    proto_tree_add_item_ret_uint(exp_tree, hf_tcp_option_mss_val, tvb, offset + 2, 2, ENC_BIG_ENDIAN, &mss);
    proto_item_append_text(item, ": %u bytes", mss);
    tcp_info_append_uint(pinfo, "MSS", mss);

....

        { &hf_tcp_option_mss_val,
          { "MSS Value", "tcp.options.mss_val", FT_UINT16,
            BASE_DEC, NULL, 0x0, NULL, HFILL}},

Chuckc's avatar
3k
Chuckc
answered 2022-05-15 17:53:30 +0000
edit flag offensive 0 remove flag delete link

Comments

Just perfect! Thank you ;-)

ebo's avatar ebo (2022-05-15 20:31:05 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer