freebsd-dev/sys/netpfil
Kajetan Staszkiewicz d10de21f2f pf: Access r->rpool.cur->kif under mutex protection
pf_route() sends traffic to a specified next hop over a specific
interface. The next hop is obtained in pf_map_addr() but the interface
is obtained directly via r->rpool.cur->kif` outside of the lock held in
pf_map_addr() in multiple places around pf. The chosen interface is not
stored in source node.

Move the interface selection into pf_map_addr(), have the function
return it together with the chosen IP address and ensure its stored
in struct pf_ksrc_node, store it in the source node and use the stored
value when needed.

Sponsored by:	InnoGames GmbH
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D41570
2023-08-24 13:05:33 +02:00
..
ipfilter/netinet sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
ipfw sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
pf pf: Access r->rpool.cur->kif under mutex protection 2023-08-24 13:05:33 +02:00