From owner-freebsd-security Wed Sep 15 20:58:33 1999 Delivered-To: freebsd-security@freebsd.org Received: from lariat.lariat.org (lariat.lariat.org [206.100.185.2]) by hub.freebsd.org (Postfix) with ESMTP id 914C014A00 for ; Wed, 15 Sep 1999 20:58:30 -0700 (PDT) (envelope-from brett@lariat.org) Received: from mustang (IDENT:ppp0.lariat.org@lariat.lariat.org [206.100.185.2]) by lariat.lariat.org (8.9.3/8.9.3) with ESMTP id VAA23663; Wed, 15 Sep 1999 21:58:20 -0600 (MDT) Message-Id: <4.2.0.58.19990915215201.0462cdc0@localhost> X-Sender: brett@localhost X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Wed, 15 Sep 1999 21:57:07 -0600 To: Peter Jeremy From: Brett Glass Subject: Re: BPF on in 3.3-RC GENERIC kernel Cc: freebsd-security@FreeBSD.ORG In-Reply-To: <99Sep16.131934est.40325@border.alcanet.com.au> References: <4.2.0.58.19990915201332.048da870@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm sure I can do the latter patch. The former would involve some learning about the innards of the stack, and probably the creation of a separate protocol module that parallels the IPX and Appletalk modules. Guidance on how this is done would be appreciated, since while I now have an idea of how to do NIC drivers I am not that familiar with how to do a new layer above them. --Brett At 01:21 PM 9/16/99 +1000, Peter Jeremy wrote: >Brett Glass wrote: > > Why is DHCP handled through BPF? >Please go and read the archives, where this is discussed in detail. > >Briefly, a DHCP client needs to be able to both send and receive IP >packets before its interface has an IP address. Using the standard >4.4BSD IP stack, the only way a user process (the DHCP client) can >receive IP packets is using BPF. > >I believe Linux has some hooks in its IP stack to work around this. >Feel free to provide patches to add a similar facility to the FreeBSD >IP stack. > > >Which leads to the idea of a kernel config option, similar to the one > >that lets you set flags for syscons. > >Feel free to supply patches. > >Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message