Re: Adjust some DLT_IEEE802_11_RADIO bpf taps

2020-02-18 Thread Stefan Sperling
On Mon, Feb 17, 2020 at 05:41:15PM +0100, Stefan Sperling wrote: > On Mon, Feb 17, 2020 at 05:07:42PM +0100, Claudio Jeker wrote: > > As already done on iwm(4) and one of the athn(4), there is no need to pass > > the radio tap structure to bpf_mtap by faking up an mbuf. The code can > > just use bp

Re: Adjust some DLT_IEEE802_11_RADIO bpf taps

2020-02-17 Thread Stefan Sperling
On Mon, Feb 17, 2020 at 05:07:42PM +0100, Claudio Jeker wrote: > As already done on iwm(4) and one of the athn(4), there is no need to pass > the radio tap structure to bpf_mtap by faking up an mbuf. The code can > just use bpf_mtap_hdr() (which does a similar dance but with far less > memory on th

Adjust some DLT_IEEE802_11_RADIO bpf taps

2020-02-17 Thread Claudio Jeker
As already done on iwm(4) and one of the athn(4), there is no need to pass the radio tap structure to bpf_mtap by faking up an mbuf. The code can just use bpf_mtap_hdr() (which does a similar dance but with far less memory on the stack). There are many other wifi driver that do the same thing so I