pretty-printing IP packets

Posted by pts on Server Fault See other posts from Server Fault or by pts
Published on 2013-10-18T23:45:33Z Indexed on 2013/10/19 3:58 UTC
Read the original article Hit count: 184

Filed under:
|
|

I'm receiving IP packets using the SLIP protocol, and I'd like to pretty-print them similarly to how tcpdump does it. My program is able to decode the SLIP protocol and create a single string containing an IP packet if necessary.

I couldn't find any relevant tcpdump command-line flags except for -r. The file format is documented at http://www.tcpdump.org/pcap/pcap.html , but it looks a bit too complicated.

Is there a Linux tool for pretty-printing raw IP packets?

© Server Fault or respective owner

Related posts about ip

Related posts about tcpdump