Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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'"


Comment on Re: How can I check if the eth? exist
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2014-10-31 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (211 votes), past polls