BPF_MISC+BPF_COP and BPF_COPX
Mindaugas Rasiukevicius
rmind at netbsd.org
Thu Aug 29 15:28:49 UTC 2013
Hi,
Adrian Chadd <adrian at freebsd.org> wrote:
> >> > It provides us a capability to offload more complex packet
> >> > processing. My primary user would be NPF in NetBSD, e.g. one of the
> >> > operations is to lookup an IP address in a table/ipset.
> >
> > I would like to coordinate the reservation of BPF opcodes though.
>
> That's a good idea. I have no problem with that.
>
I have added these to the NetBSD tree:
#define BPF_MISCOP(code) ((code) & 0xf8)
#define BPF_TAX 0x00
+#define BPF_COP 0x20
+#define BPF_COPX 0x40
#define BPF_TXA 0x80
Would you like to reserve them in FreeBSD as well?
Thanks.
--
Mindaugas
More information about the freebsd-net
mailing list