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
F107581027: D42005.diff
Thu, Jan 16, 5:06 AM
Unknown Object (File)
Tue, Dec 24, 10:39 PM
Unknown Object (File)
Nov 12 2024, 2:44 PM
Unknown Object (File)
Nov 12 2024, 8:29 AM
Unknown Object (File)
Oct 20 2024, 11:13 AM
Unknown Object (File)
Oct 11 2024, 12:21 AM
Unknown Object (File)
Sep 28 2024, 5:49 PM
Unknown Object (File)
Sep 24 2024, 10:21 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