ICMP Ping

Luke Gorrie luke@REDACTED
Sat Feb 5 20:28:33 CET 2005


Matthias Lang <matthias@REDACTED> writes:

> leo lencioni writes:
> 
>  > > > 1) Can erlang generate and send an ICMP Echo request?
> 
> klacke writes:
>  > > 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.
> 
> A further alternative which may be of use is:
> 
>   http://www.snookles.com/erlang/edtk/edtk-1.0/examples/libnet/
> 
> it appears to have an example which sends ping packets.

An even further alternative is the lib/psocket program in jungerl.
That's a port program that opens a PF_PACKET socket to read/write
ethernet frames on existing interfaces. Could perhaps be easily
changed to use some IP-level raw socket interface, I dunno.

-Luke





More information about the erlang-questions mailing list