Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How can I check if the eth? exist

by rob_au (Abbot)
on Jul 10, 2004 at 09:34 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-04-24 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found