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, Sep 13, 1:25 PM
Unknown Object (File)
Sat, Sep 12, 6:36 AM
Unknown Object (File)
Fri, Sep 11, 2:51 AM
Unknown Object (File)
Thu, Sep 10, 9:04 PM
Unknown Object (File)
Wed, Sep 9, 2:47 PM
Unknown Object (File)
Sun, Sep 6, 1:09 PM
Unknown Object (File)
Sun, Sep 6, 2:01 AM
Unknown Object (File)
Sat, Sep 5, 11:03 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