[DragonFlyBSD - Bug #3387] (New) The BPF interpreter should support XOR and MOD operations

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Sun Nov 9 23:14:47 PST 2025


Issue #3387 has been reported by guy.

----------------------------------------
Bug #3387: The BPF interpreter should support XOR and MOD operations
http://bugs.dragonflybsd.org/issues/3387

* Author: guy
* Status: New
* Priority: Normal
* Category: Feature request
* Target version: 6.6
* Start date: 2025-11-09
----------------------------------------
Linux introduced two new BPF instructions - BPF_XOR, doing a exclusive-or, and BPF_MOD, doing a C-style modulo operation.

NetBSD and FreeBSD have added them as well, as has libpcap's user-mode interpreter, and libpcap's compiler for filter expressions supports XOR and modulo perationsl

I've attached a patch to add this to the DragonFly BSD interpreter, based on the FreeBSD change; I have not tested it, but it should be a straightforward change.

---Files--------------------------------
patch.txt (2.12 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account


More information about the Bugs mailing list