Subject: Re: [PATCH] net: introduce SO_BPF_EXTENSIONS

From: Daniel Borkmann <[email-masked]>
Date: Fri, 06 Dec 2013 11:02:01 +0100

On 12/06/2013 10:50 AM, David Laight wrote:
>> if SO_BPF_EXTENSIONS is supported, than you can assume that all current
>> extensions are supported.
>>
>> No need to consume one bit per feature, as all these features wont ever
>> disappear from linux.
>
> However one of the BSDs could add a subset of the features and
> wish to advertise the fact.
> So using extra flags for non-trivial extensions could be useful.

Haven't had a closer look at the BSD BPF code /yet/, so ...

  i) Does BSD have such extensions and if so do we overlap some?

ii) Is it planned to also introduce SO_BPF_EXTENSIONS for BSD kernels
     to have one common api (that i.e. libpcap would then make use of)?

> 	David