Project

General

Profile

Actions

Bug #3387

open

The BPF interpreter should support XOR and MOD operations

Added by guy 2 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Feature request
Target version:
Start date:
11/09/2025
Due date:
% Done:

0%

Estimated time:

Description

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) patch.txt guy, 11/09/2025 11:14 PM

No data to display

Actions

Also available in: Atom PDF