will print a line for each packet sent to or received from 1.1.1.1. Most packet types will include the length at the end of the line, following the word "length" or in parentheses.sudo tcpdump host 1.1.1.1
tcpdump is a pretty complete tool for working with libpcap. It is worth a look to avoid re-inventing the wheel.
In reply to Re^3: Net::Pcap Packet Capturing
by eye
in thread Net::Pcap Packet Capturing
by MonkeyManChfKiller
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |