Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: reshuffle code in bpf_filter.c so bpf_filter and bpf_validate match up
To:
tech@openbsd.org
Date:
Thu, 10 Sep 2026 12:17:38 +0200

Download raw body.

Thread
On Tue, Sep 08, 2026 at 11:26:55AM +0200, Claudio Jeker wrote:
> This is just moving code around to result in the same list of case
> statements in the filter and validate function.
> 
> Also encode BPF_LDX|BPF_MSH|BPF_B as BPF_LDX|BPF_B|BPF_MSH so it is like
> all other BPF_LD instructions with BPF_{B,H,W} as 2nd value.

ok tb