ICMP Ping

klacke@REDACTED klacke@REDACTED
Thu Feb 3 11:18:42 CET 2005


On Wed, Feb 02, 2005 at 06:16:21PM -0300, leo lencioni wrote:
> I'am new to erlang, and I want to write a simple 
> ICMP ping logger as an example 
> 
> I read the documentation and I found that erlang has 
> support for raw sockets. 
> 

Wow, where did you read that. This was news to me anyway.


> 1) Can erlang generate and send an ICMP Echo request? 


Assuming the above is correct, sure. 

An alternative could
be to use the tun/tap driver found in jungerl, that could
sureley be used to introduce raw IP packets on the network.
To read the packet, you'd have to setup your routes i  such
a way so that return packets find their way up to userspace.

http://jungerl.sourceforge.net/


> 2) Where I can find an example? 
> 

For RAW packets, nowhere I think !!


/klacke


-- 
Claes Wikstrom                        -- Caps lock is nowhere and
http://www.hyber.org                  -- everything is under control          



More information about the erlang-questions mailing list