Using tcpdump version 4.0.0 (libpcap version 1.0.0) to decode Agent-Information Option 82, I would like to get the output a little more human readable.
Code:
Agent-Information Option 82, length 14:
Circuit-ID SubOption 1, length 4: M-^@^A^@^C
Remote-ID SubOption 2, length 6: ^@^[M-]M-,^T4
I've searched through the man-pages but could not find any appropriate switch.
tcpdump version 3.9.2 (libpcap version 0.9.2) works like this on the very same packet:
Code:
ACKT:1.4.128.1.0.3.2.6.0.27.221.172.20.52
"Pretty" readable. 1.4 is SubOption 1, length 4 (data follows, 4 bytes). 2.6 is SubOption 2, length 6 (data follows, 6 bytes). The last six bytes it the data I need. It is a hardware address: 00:1b:dd:ac:14:34 (translated to hex).
I guess it's not that easy to "see" that ^@^[M-]M-,^T4 is the same hardware address...
Any clue how to solve this with tcpdump 4.0.0?
-Bob-