Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Net::Pcap print ip address

by shmem (Canon)
on May 29, 2013 at 11:23 UTC ( #1035821=note: print w/ replies, xml ) Need Help??


in reply to Net::Pcap print ip address

This is not efficient. I am sure there must be elegant way to do this. some examples please..?

You could use unpack and join.

my $addr = join '.', unpack 'x25 C4', $pkt;


Comment on Re: Net::Pcap print ip address
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2015-07-01 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (22 votes), past polls