Tcpdump have two flags -x and -X witch should let user choose between print "hex" dumped paquets or "hex and ascii". The man says : [man] -x Print each packet (minus its link level header) in hex. The smaller of the entire packet or snaplen bytes will be printed. Note that this is the entire link-layer packet, so for link layers that pad (e.g. Ethernet), the padding bytes will also be printed when the higher layer packet is shorter than the required padding. -xx Print each packet, including its link level header, in hex. -X Print each packet (minus its link level header) in hex and ASCII. This is very handy for analysing new protocols. -XX Print each packet, including its link level header, in hex and ASCII. [/man] Reproducible: Always Steps to Reproduce: 1. try "tcpdump -x" or "tcpdump -xx". 2. wait for a packet. 3. Actual Results: I dumped packet : 11:39:14.850828 IP ns3.wanadoo.fr.domain > ..32890: 40334*[|domain] 0x0000: 4500 0058 b876 4000 4011 eb52 c1fc 1303 E..X.v@.@..R.... 0x0010: c0a8 0124 0035 807a 0044 ea1b 9d8e 8580 ...$.5.z.D...... 0x0020: 0001 0001 0000 0000 0233 3601 3103 3136 .........36.1.16 0x0030: 3803 3139 3207 8.192. Expected Results: 11:39:14.850828 IP ns3.wanadoo.fr.domain > ..32890: 40334*[|domain] 0x0000: 4500 0058 b876 4000 4011 eb52 c1fc 1303 0x0010: c0a8 0124 0035 807a 0044 ea1b 9d8e 8580 0x0020: 0001 0001 0000 0000 0233 3601 3103 3136 0x0030: 3803 3139 3207 I gived a patch to tcpdump.org witch was checked in the cvs.
Created attachment 39031 [details, diff] Patch for fix This patch were added to tcpdump cvs. See http://cvs.tcpdump.org/cgi-bin/cvsweb/tcpdump/tcpdump.c diff between versions 1.248 and 1.247. Can someone make a portage patch to patch the source durring the emerge process ? Hope I can help Open Source :) Best regards, Sebastien Vincent
Created attachment 39032 [details] "emerge info" output, but it don't help here I think.
net-analyzer/tcpdump belongs to netmon... Any reason this is assigned to spider?
Patch in question is available upstream (checked tcpdump-3.9.3). Thanks for reporting.