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)
Tue, Apr 30, 6:39 PM
Unknown Object (File)
Tue, Apr 30, 6:38 PM
Unknown Object (File)
Tue, Apr 30, 6:38 PM
Unknown Object (File)
Tue, Apr 30, 4:08 PM
Unknown Object (File)
Feb 11 2024, 8:26 PM
Unknown Object (File)
Dec 30 2023, 6:04 PM
Unknown Object (File)
Dec 12 2023, 2:40 PM
Unknown Object (File)
Nov 7 2023, 8:51 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