This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

exporting media.type content into character string instead of hex?

0

Following command outputs the "media.type" content as a hex string in my csv file. Is there a way to write this as ascii characters in the csv file?

tshark -r xyz.pcap -T fields -e frame.number -e frame.time -e media.type -E header=y -E separator=, -E quote=d > abc.csv

Thanks.

asked 17 Jan '16, 17:40

hvs's gravatar image

hvs
6446
accept rate: 0%


One Answer:

1

Is there a way to write this as ascii characters in the csv file?

Unfortunately, there isn't any; for some not-immediately-obvious reason, the "media.type" field has the type "bytes" rather than "string", meaning it gets dumped as a hex value.

Please file a bug on this at the Wireshark Bugzilla.

answered 17 Jan '16, 19:33

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%