]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: assert that sizeof(struct pf_state) <= 312
authorMateusz Guzik <mjg@FreeBSD.org>
Mon, 28 Jun 2021 12:49:40 +0000 (14:49 +0200)
committerMateusz Guzik <mjg@FreeBSD.org>
Mon, 5 Jul 2021 11:32:11 +0000 (11:32 +0000)
commitf75b6fce91b12df3494a13075a809a1386bfd9db
tree346c6e11e137a88474dfd246c8480bf5bfc61099
parent0e3ee7e3a6744e30f78ed2756f0060367f340179
pf: assert that sizeof(struct pf_state) <= 312

To prevent accidentally going over a threshold which makes UMA fit only
12 objects per page instead of 13.

Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")

(cherry picked from commit e6dd0e2e8d4f59275fb576a9ccb9d356d36457bb)
sys/net/pfvar.h