[Bug 237973] pf: implement egress keyword to simplify rules across different hardware

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 01 Aug 2022 08:33:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237973

--- Comment #14 from Alexander V. Chernikov <melifaro@FreeBSD.org> ---
(In reply to Goran Mekić from comment #13)
Depends on the implementation.
The code in the mentioned repository (
https://github.com/mekanix/freebsd-src/commit/afeff25d15b5d16b6402b36de8d61ee44d229c5b
) sets IFG_EGRESS based on the default route presence. I'm not familiar with PF
internals to say what is a clear way here - to maintain an additional internal
data structure with the list of interfaces with default route, or leverage an
already existing? machinery for interface groups.

What I'm saying is that PF can instantiate subscription to any fib it desires
and handle default default route changes from that hook.

-- 
You are receiving this mail because:
You are the assignee for the bug.