git: DragonFly_RELEASE_6_4 bpf: add XOR and modulo instructions

Aaron LI aly at crater.dragonflybsd.org
Thu Nov 12 23:21:39 PST 2026


commit 485a1e813781ac384a5df26541cee62589703d03
Author: David Bidner <david at crap.solutions>
Date:   Sat Oct 3 13:50:58 2026 +0200

    bpf: add XOR and modulo instructions
    
    libpcap can generate XOR and modulo instructions, but the kernel
    interpreter and validator do not support them.
    
    Add constant and register operands for both operations. Reject constant
    modulo by zero and return zero for a register zero divisor, as for DIV.
    Update the manual to match.
    
    Patch-by: guy
    Bug: https://bugs.dragonflybsd.org/issues/3387

Summary of changes:
 share/man/man4/bpf.4 | 10 +++++++++-
 sys/net/bpf_filter.c | 24 +++++++++++++++++++++++-
 2 files changed, 32 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/485a1e813781ac384a5df26541cee62589703d03


-- 
DragonFly BSD source repository


More information about the Commits mailing list