Implementing IP_SENDIF (like SO_BINDTODEVICE)
Gleb Smirnoff
glebius at freebsd.org
Thu Oct 28 04:41:41 PDT 2004
On Wed, Oct 27, 2004 at 12:52:33PM -0700, Bruce M Simpson wrote:
B> On Wed, Oct 27, 2004 at 12:28:22PM -0700, Julian Elischer wrote:
B> > >It annoys me that we have to resort to BPF to send IP datagrams on
B> > >unnumbered interfaces. Here is a half baked idea. Please look and
B> > >tell me what you think.
B> >
B> > I've sent lots of datagrams on un-numberred interfaces using netgraph..
B>
B> I should qualify my post a bit more: I began thinking along these lines
B> with the intention of enabling ISC dhcp (and dhclient) to be compiled
B> without using bpf support. I don't have the time or interest to port ISC
B> dhcp to use netgraph, but I'd be interested to see the results if that
B> happened.
ng_device can be attached to "orphans" hook of ng_ether. /dev/ngdX opened
by dhcpd, and packets processed.
What is benefit to get rid of bpf? What is problem with it?
--
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE
More information about the freebsd-net
mailing list