HomeFreeBSD

pf: bound DIOCGETSTATES memory use

Description

pf: bound DIOCGETSTATES memory use

Similar to what we did earlier for DIOCGETSTATESV2 we only allocate
enough memory for a handful of states and copy those out, bit by bit,
rather than allocating memory for all states in one go.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Aug 2 2021, 7:46 AM
Parents
rG8ca384eb1d42: devclass_alloc_unit: move "at" hint test to after device-in-use test
Branches
Unknown
Tags
Unknown