Subject: Re: BPF interface changes
To: John Hawkinson <jhawk@MIT.EDU>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-net
Date: 12/19/2000 16:01:07
On Tue, Dec 19, 2000 at 06:39:57PM -0500, John Hawkinson wrote:

 >     The DLT_* constants should be maintained in tandem with the bpf
 >     distributed by tcpdump.org, and splitting them out like that, when	
 >     they've not done so seems likely to cause gratuitous merge problems.
 >     Is there a real benefit to us to do this?

We can still track tcpdump.org's.  But there are some applications that
might want to get the DLT_* for an interface without having to attach
a /dev/bpf* instance to it.  Now there is support for this.

 >     Changing the bpfattach() arguments buys us extremely little. It doesn't
 >     give us a performance win or anything. But it does make our bpfattach()
 >     gratuitously different from all other bpfattach()s, which makes it more
 >     annoying for people to port drivers between NetBSD and other operating
 >     systems. It means that it's more annoying to backport drivers from
 >     -current to 1.5.1 (or 1.4.x). In short, it seems to add some red tape
 >     and not actually give us anything.

Actually, our bpf_attach() is now like FreeBSD's.

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>