Page MenuHomeFreeBSD

pf: Reduce the data returned in DIOCGETSTATESNV
ClosedPublic

Authored by kp on Jun 29 2021, 7:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 28, 7:01 AM
Unknown Object (File)
Mon, May 11, 3:01 AM
Unknown Object (File)
Mon, May 11, 3:00 AM
Unknown Object (File)
Mon, May 11, 3:00 AM
Unknown Object (File)
Mon, May 11, 2:13 AM
Unknown Object (File)
May 6 2026, 5:00 AM
Unknown Object (File)
Apr 30 2026, 12:42 PM
Unknown Object (File)
Apr 26 2026, 11:02 PM

Details

Summary

This call is particularly slow due to the large amount of data it
returns. Remove all fields pfctl does not use. There is no functional
impact to pfctl, but it somewhat speeds up the call.

It might affect other (i.e. non-FreeBSD) code that uses the new
interface, but this call is very new, so there's unlikely to be any. No
releases contained the previous version, so we choose to live with the
ABI modification.

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable