Thread (8 messages) 8 messages, 3 authors, 8d ago

Re: [PATCH v1 bpf-next 0/2] bpf: bpf_redirect_peer egress redirection

From: Jordan Rife <hidden>
Date: 2026-06-16 20:49:38
Also in: bpf

IMO, calling it BPF_F_EGRESS would be less confusing. It's a shame we
can't have the same flag API between bpf_redirect() and
bpf_redirect_peer(), but this is creating inconsistent semantics for
the terms egress/ingress across the two helpers.
Yeah, one annoying thing about BPF_F_EGRESS is that it would only
apply to bpf_redirect_peer, so you still have inconsistencies across
helpers. Perhaps this is less weird than having BPF_F_INGRESS perform
an egress redirection though.

Jordan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help