]> The Tcpdump Group git mirrors - tcpdump/commit
Print packets for unsupported link-layer protocols in hexadecimal/ASCII 851/head
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 9 May 2020 17:32:05 +0000 (19:32 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 10 May 2020 09:05:59 +0000 (11:05 +0200)
commit25687e1a312a3bb63a6e8d7f0af0210a615e24a8
treebd625058a963602f9571587f5345e58f30b07f43
parent2b5ab9ae73292ee9e0cc01b86e127d9079a78fb2
Print packets for unsupported link-layer protocols in hexadecimal/ASCII

This avoids to get only:
tcpdump: packet printing is not supported for link type XYZ: use -w

The default printing is like:
18:45:52.723872 UNSUPPORTED
        0x0000:  001f 0000 0540 6078 725d 586d 4d66 4671  .....@`xr]XmMfFq
        0x0010:  6d58 4d5c 7159 5f71 565c 556c 4e71 7171  mXM\qY_qV\UlNqqq
        0x0020:  7171 7171 7171 7171 7171 7171 7171 5180  qqqqqqqqqqqqqqQ.
        0x0030:  7f7f                                     ..
18:45:52.755995 UNSUPPORTED
        0x0000:  001f 0000 0540 6043 7851 807f 7f         .....@`CxQ...
        [...]
CMakeLists.txt
Makefile.in
netdissect.h
print-unsupported.c [new file with mode: 0644]
print.c