freebsd-dev/sys/netpfil
Kristof Provost 3fc12ae042 pf: bound DIOCGETSTATESV2 memory use
Rather than allocating however much memory userspace asks for we only
allocate enough for a handful of states, and copy to userspace for each
completed row.
We start out with enough space for 16 states (per row), but grow that as
required. In most configurations we expect at most a handful of states
per row (more than that would have other negative effects on packet
processing performance).

Reviewed by:	mjg
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D31111
2021-07-09 10:30:02 +02:00
..
ipfw dummynet: reduce console spam 2021-07-08 20:25:05 +02:00
pf pf: bound DIOCGETSTATESV2 memory use 2021-07-09 10:30:02 +02:00