Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Re: Net::Pcap does not work

by lhoward (Vicar)
on Jul 24, 2002 at 08:20 UTC ( [id://184793]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Re: Net::Pcap does not work
in thread Net::Pcap does not work

Yes, libpcap is underneath tcpdump as well as being the basis for Net::Pcap. Could it be that your interface is not in promiscuious mode? Newer versions of tcpdump do not put the interface into permiscuous mode by default, if this behavior is inherited from libpcap, you may have to manually put the interace into permiscuous mode. Also make sure you're explicitly telling Net::Pcap which interface you want it to listen to. Permissions can also be a problem with pcap, in many cases the program using it has to run with root permissions.

Replies are listed 'Best First'.
Re: Re: Re: Re: Net::Pcap does not work
by arc_of_descent (Hermit) on Jul 24, 2002 at 08:54 UTC
    Hi,

    Well... I have tried promiscous mode as well as
    manually specifying the interface(eth0 and lo)
    I have also done it using root permissions.
    I guess whats left now is to check my pcap library
    with a C program!
    Help!! :-)

    --
    arc_of_descent

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://184793]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.