Re: Userlevel ARP request

Mike Panetta (mpanetta@realminfo.com)
Tue, 31 Aug 1999 11:07:59 -0400


Could someone send me this man page or some code samples? I cannot get this
to work and I dont have that man page...

Any help appreciated!

On Tue, Aug 31, 1999 at 06:03:23PM +0200, Matthew Wilcox wrote:
> On Tue, Aug 31, 1999 at 04:42:58PM +0100, sjw44@eng.cam.ac.uk wrote:
> > yes this can be done with a PF_PACKET socket. You have a choice of
> > SOCK_RAW (with datalink headers) or SOCK_DGRAM (a slightly more cooked
> > mode of operation). Probably you would do something like:
> >
> > s = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ARP));
> >
> > You can restrict this to a single device with bind() too if you want to.
> > man 4 packet has more information,
>
> that's `man 7 packet'. Some distributions distributed an older version
> of netman, against the wishes of the authors (that version was explicitly
> lableed DO NOT DISTRIBUTE). In the released version which was merged
> with manpages-1.23, the protocol pages were moved to section 7.
>
> --
> Matthew Wilcox <willy@bofh.ai>
> "Windows and MacOS are products, contrived by engineers in the service of
> specific companies. Unix, by contrast, is not so much a product as it is a
> painstakingly compiled oral history of the hacker subculture." - N Stephenson

-- 

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