First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Columns display format

  • retag add tags

Hello,

I was wondering if there is a way to change the format of the data shown in the columns of the packet list.

For example, I have created a column that displays the ip.tos.precedence value of the packets. What that column displays is the names of the precedence ("inmediate,routine", "routine,routine", ...). Is it possible to show the content of that field as decimal values ("2", "0") or binary values ("101", "000")?

Thanks in advance. Fran

franjorge's avatar
1
franjorge
asked 2017-11-20 07:44:59 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

1

Changing the format of a column is only available for the frame time column. All custom columns get the presentation from the field they represent.

Jaap's avatar
13.7k
Jaap
answered 2017-11-20 13:19:49 +0000
edit flag offensive 0 remove flag delete link

Comments

OK. Thanks for your answer.

I think this could be a nice feature to add.

Regards, Fran

franjorge's avatar franjorge (2017-11-20 14:42:01 +0000) edit

The way dissection of protocols is done, I'm afraid adding such feature won't be that easy. When writing a dissector for a particular protocol field, you basically tell the common dissection engine to take a byte or bit range, assign it a name and choose the field type (string, signed/unsigned integer, enumeration of text names etc.). So to allow choosing from several different output conversions for eligible fields, a new method would have to be added and integrated to the UI of both Wireshark and tshark, and the choice for each field would have to be stored in the preference file(s).

Having said that, I would suggest you a workaround: have a look at Lua dissectors. If you need the numeric representation only for a single field of the IP layer, you can save the link to the ip dissector and replace it in all dissector ... (more)

sindy's avatar sindy (2017-11-20 18:41:14 +0000) edit

OK, Sindy. I will try the approach you suggested. Thanks for your help!!

franjorge's avatar franjorge (2017-11-21 10:33:21 +0000) edit
add a comment see more comments
0

You can try right-click the column header and turn off "Resolve Names".

Stig's avatar
138
Stig
answered 2017-11-22 19:48:00 +0000
edit flag offensive 0 remove flag delete link

Comments

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