Subject: Re: bpf patch: bpf_mtap2
To: None <tech-net@NetBSD.org, matt@netbsd.org>
From: Darren Reed <darrenr@NetBSD.org>
List: tech-net
Date: 05/05/2004 03:35:55
On Tue, May 04, 2004 at 08:46:59PM -0500, David Young wrote:
> Here is another bpf_mtap2 patch.  Also, I have patched if_tun.c to use
> bpf_mtap2, following a suggestion by Darren.

Hmmm, in bpf_mtap2(), is it worth setting the M_PKTHDR flag ?
e.g.

mb.m_flags = M_PKTHDR;
mb.m_len = pktlen;

rather than just:
mb.m_len = dlen;

...or are there other fields that need to be intact if M_PKTHDR is defined ?

Darren