Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Net::Pcap Filters and alarm()

by oiskuu (Friar)
on Apr 09, 2014 at 18:18 UTC ( #1081706=note: print w/ replies, xml ) Need Help??


in reply to Net::Pcap Filters and alarm() [SOLVED]

What happens if you pcap_close($pcap) in the alarm handler?


Comment on Re: Net::Pcap Filters and alarm()
Download Code
Re^2: Net::Pcap Filters and alarm()
by return0 (Acolyte) on Apr 09, 2014 at 18:45 UTC
    Alarm handler never gets called. I put a print statement there to notify me :(
Re^2: Net::Pcap Filters and alarm()
by return0 (Acolyte) on Apr 09, 2014 at 19:17 UTC
    if the timeout is reached before i ping 10.0.0.1 in another terminal, the Net::Pcap::loop returns and executes the alarm() handler before continuing the process the packet! what?!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2014-11-28 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (194 votes), past polls