Ask Your Question
0

How to display mss value in decimal as column

asked 2022-05-15 16:13:34 +0000

ebo gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2022-05-15 17:53:30 +0000

Chuckc gravatar image

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}},

edit flag offensive delete link more

Comments

Just perfect! Thank you ;-)

ebo gravatar imageebo ( 2022-05-15 20:31:05 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2022-05-15 16:13:34 +0000

Seen: 861 times

Last updated: May 15 '22