Ask Your Question
0

write the name of fields instead of number in tshark

asked 2018-03-29 13:46:07 +0000

ghader gravatar image

updated 2018-03-29 13:46:48 +0000

hi, i want to write the name of fields instead of number in tshark.is it possible? for example if i use this command:

tshark -r test.pcap -T fields -e eth.type

in the output i see

Type:0x8021

but i want to see the name of this field .i want to see

Type: PPP IP Control Protocol (0x8021)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-03-29 17:37:27 +0000

cmaynard gravatar image

You can try specifying the column output instead of the per-field output. For example:

*nix:

tshark -r test.pcap -o 'gui.column.format:"Eth Type","%Cus:eth.type"'

Windows:

tshark -r test.pcap -o "gui.column.format:\"Eth Type\",\"%Cus:eth.type\""

Run tshark -G column-formats and/or refer to the tshark man page for additional help with specifying column formats.

edit flag offensive delete link more

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: 2018-03-29 13:46:07 +0000

Seen: 273 times

Last updated: Mar 29 '18