Page MenuHomeFreeBSD

ipfilter: Add sysctl flag CTLFLAG_TUN to loader tunable
ClosedPublic

Authored by zlei on Sep 28 2023, 2:52 AM.
Tags
None
Referenced Files
F131869025: D42005.id.diff
Sat, Oct 11, 8:21 PM
Unknown Object (File)
Sat, Oct 11, 11:23 AM
Unknown Object (File)
Sat, Oct 11, 11:23 AM
Unknown Object (File)
Sat, Oct 11, 3:20 AM
Unknown Object (File)
Thu, Oct 9, 7:18 PM
Unknown Object (File)
Wed, Oct 1, 10:49 PM
Unknown Object (File)
Wed, Oct 1, 7:39 PM
Unknown Object (File)
Wed, Oct 1, 10:16 AM

Details

Summary

The sysctl variable net.inet.ipf.large_nat is actually a loader
tunable. Add sysctl flag CTLFLAG_TUN to it so that sysctl -T will
report it correctly.

No functional change intended.

Fixes: a805ffbcbce8 ipfilter: Make LARGE_NAT a tunable
MFC after: 3 days

Test Plan

Set kernel env, load module and verify the sysctl report.

# kenv net.inet.ipf.large_nat=1
net.inet.ipf.large_nat="1"
# kldload ipl
# sysctl -T net.inet.ipf.large_nat
net.inet.ipf.large_nat: 1

Diff Detail

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