Re: DHCP client an 2.1

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 11 Aug 1998 20:04:05 +0100 (BST)


> Jacobsen & co's paper on BPF. The I found the latest copy of dhcpcd (see
> the DHCP HOWTO on sunsite, near the top of the document. This works quite
> well for me under 2.1), and its docs mention that nothing about BPF at
> all, rather that they just open the socket with a different option
> (AF_PACKET or something?). I haven't heard back from the ISC guys, and
> don't really care now, since dhcpcd works for me, but I do think I now
> have an idea of what this will take to make function.

socket(PF_PACKET, ...) gives you a socket that receives all frames of
the type specified and lets you generate raw packets yourself. The LSF stuff
simply means you can avoid copying frames to user space you dont need to
copy. So using the LSF stuff if its there is good but not critical

-
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.altern.org/andrebalsa/doc/lkml-faq.html