Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Net::Pcap Packet Capturing

by eye (Chaplain)
on May 18, 2014 at 05:23 UTC ( [id://1086482]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Net::Pcap Packet Capturing
in thread Net::Pcap Packet Capturing

If you are on a linux/unix machine, you could just use tcpdump. Something like:
sudo tcpdump host 1.1.1.1
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.

tcpdump is a pretty complete tool for working with libpcap. It is worth a look to avoid re-inventing the wheel.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1086482]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-25 23:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found