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)
Sun, Oct 20, 11:13 AM
Unknown Object (File)
Fri, Oct 11, 12:21 AM
Unknown Object (File)
Sep 28 2024, 5:49 PM
Unknown Object (File)
Sep 24 2024, 10:21 PM
Unknown Object (File)
Sep 24 2024, 8:55 AM
Unknown Object (File)
Sep 24 2024, 8:53 AM
Unknown Object (File)
Sep 19 2024, 2:50 PM
Unknown Object (File)
Sep 17 2024, 1:44 PM

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