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
Unknown Object (File)
Thu, Nov 6, 9:49 PM
Unknown Object (File)
Wed, Nov 5, 1:47 AM
Unknown Object (File)
Fri, Oct 31, 1:54 AM
Unknown Object (File)
Thu, Oct 30, 8:20 AM
Unknown Object (File)
Wed, Oct 29, 7:12 AM
Unknown Object (File)
Mon, Oct 27, 5:55 AM
Unknown Object (File)
Fri, Oct 24, 9:14 AM
Unknown Object (File)
Sat, Oct 18, 2:39 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