ICMP Ping

leo lencioni <>
Thu Feb 3 16:23:06 CET 2005


Sorry for asking such question without reading in detail the manual.
Reading twice I understand that option raw in inet:setops has nothing
to do with IP raw sockets.

I will go to jungerl and take a look to the TUN/TAP driver.

Thanks for your time.

On Thu, 3 Feb 2005 11:18:42 +0100,  <> wrote:
> 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