Hi all, Tshark mac address translation works pretty fine, but somehow if i wanna get translated && untranslated mac addresses in 2 different columns (as SYN-bit within the below link) it doesn't work. On one hand it shows only mac untranslated mac addresses:
On the other hand it shows only mac untranslated mac addresses:
Actually the output that i’m looking for should be as below:
I’ve been checking tshark man page, and it especifies how to translate or not (including -N m), but my questions is: how to show untranslated and translated content in different columns at the same time? Any advice about how to manage it? Thanks in advance asked 15 Oct ‘13, 06:59 legramo |
One Answer:
You don't say which version you're using, but using the very latest version (1.11.0 built from source), this works:
Note that the "h" in "uhs" specifies a hardware address -- in other words, the MAC address. answered 15 Oct '13, 07:41 beroset |
I'm using TShark 1.8.2 (not 1.11.0) due to some problems installing the last Tshark version within a Raspberry Pi:
Linux raspberrypi 3.2.27+ armv6l GNU/Linux
Have you tried to do it without sample.pcap? I mean:
./tshark -i wlan1 -o column.format:'"Unres","%us","Res","%rs"'
Yes, I have tried it just now with the default device (Ethernet in my case) as:
tshark -o column.format:'"Unres","%uhs","Res","%rhs"'
It should be noted that although this works with 1.11.0, the preferred form is with "gui.column.format" instead of "column.format" due to some renaming that has been done recently to improve consistency.
... except that there's nothing graphical about tshark, so maybe
gui.column.format
should be changed toui.column.format
so it's more generic and applicable to either the graphical or command-line user interfaces. A discussion for wireshark-dev maybe ...By the way, starting with r51742, which will be part of 1.11.0 when it's released, you can also add new custom columns in Wireshark for the following fields:
eth.dst_resolved
eth.src_resolved
eth.addr_resolved
wlan.da_resolved
wlan.sa_resolved
wlan.addr_resolved
wlan.ra_resolved
wlan.ta_resolved
wlan.bssid_resolved
Tshark will then display these columns when the
-P
option is specified, and you won't need to use-o column.format
. I'm not sure which would method would be easier for you or preferred, but at least you'd have the choice.See also: this question.