Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Seeking examples of using Ethernet-related modules

by boblikeperl (Initiate)
on Oct 23, 2006 at 21:13 UTC ( #580156=perlquestion: print w/ replies, xml ) Need Help??
boblikeperl has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone have an example of reading/writing to ethernet devices for Win32 and Linux? I've seen blurbs about Net::Ethernet, NET::PCap, NET::PcapUtils..... I don't understand how they all work together.

I need to do the same thing tcpdump (Linux) and Ethereal do, read information from an ethernet port and display/modify the data. I need to write an application and not use Ethereal. We will be modifying the TCP/IP data and send it to the hardware we are producing. The ethernet data may be from FTP, TCP/IP, DNS, NTP or any other socket/port combo. I don't want to write a socket app for each combo. Is this clearer?

2006-10-23 Retitled by Arunbear, as per Monastery guidelines
Original title: 'Ethernet'

As an example: while data_available_on_ethernet_device read_data parse_data if data_is_what_I_am_looking_for modify/add to data format new tcp/ip packet send/forward packet else discard packet end_while Thanks for all your help. If I can only resolve the errors with loading Net::Ethernet, Pcap, PcapUtils and libpcap, I could probably get this to work.

Comment on Seeking examples of using Ethernet-related modules
Re: Seeking examples of using Ethernet-related modules
by GrandFather (Cardinal) on Oct 23, 2006 at 21:24 UTC

    Perhaps you need to tell us a little more about what you want to achieve? Your quetion at the moment reads a little like "How do I use a graphics card amd monitor?". Mostly you deal with things on a much higer level. If you really need to work close to the wire you need to ask much more specific questions.


    DWIM is Perl's answer to Gödel
Re: Seeking examples of using Ethernet-related modules
by rob_au (Abbot) on Oct 23, 2006 at 23:22 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2014-07-13 05:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (246 votes), past polls