Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: How can I check if the eth? exist

by rob_au (Abbot)
on Jul 10, 2004 at 09:34 UTC ( #373331=note: print w/replies, xml ) Need Help??

in reply to How can I check if the eth? exist

While I've come to this discussion somewhat late, if you are wanting a more cross platform solution (as opposed to parsing the output of an external command such as ifconfig), you may wish to consider the employ of the most recent version of Net::Pcap (and the corresponding libpcap library) - With the most recent version of this module (0.05), a list of all network devices that can be used fornetwork monitoring can be retrieved using the findalldevs function:
my @devs = Net::Pcap::findalldevs( \( my $err = undef ) )


perl -le "print unpack'N', pack'B32', '00000000000000000000001011101000'"

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2016-10-26 03:17 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (331 votes). Check out past polls.