]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: avoid passing through dummynet multiple times
authorKristof Provost <kp@FreeBSD.org>
Mon, 11 Mar 2024 13:44:17 +0000 (14:44 +0100)
committerKristof Provost <kp@FreeBSD.org>
Tue, 19 Mar 2024 15:29:29 +0000 (16:29 +0100)
commit0ea0c026557b46292881d5a75babeb3cc0fd9696
tree09ac9831c5b451ddc47233deb8a02d5357c65035
parent02b25ccfc0b13759ce04c291b6569dcfa22a9fa0
pf: avoid passing through dummynet multiple times

In some setups we end up with multiple states created for a single
packet, which in turn can mean we run the packet through dummynet
multiple times. That's not expected or intended. Mark each packet when
it goes through dummynet, and do not pass packet through dummynet if
they're marked as having already passed through.

See also: https://redmine.pfsense.org/issues/14854
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D44365
sys/netpfil/pf/pf.c
sys/netpfil/pf/pf_mtag.h
tests/sys/netpfil/pf/route_to.sh