Re: pure raw eth sockets

Willy Tarreau (willy@w.ods.org)
Fri, 8 Nov 2002 09:14:29 +0100


On Fri, Nov 08, 2002 at 12:12:44AM -0600, Colin Burnett wrote:
> I'm at a complete road block here and I appreciate any help!
>
> I'm trying to write a packet generator that generates a packet down to the
> destination/src mac address of an eth frame. However, nothing I find seems to
> explain how to do this let alone if it is possible. As example (for
> familiarity), implementing a RARP client (and server). I first create a socket:

I wrote a tool which works exactly like this, to test network equipments to
limits. It's slightly commented, and relatively basic. You can download it
there :

http://w.ods.org/tools/ethforge/

Just a tip: don't start it without args, by default it will bomb as many
packets as possible on your network! Read it first :-)

Cheers,
Willy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/