tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: BPF_MISC+BPF_COP and BPF_COPX



Hi,

Adrian Chadd <adrian%freebsd.org@localhost> 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


Home | Main Index | Thread Index | Old Index