Page MenuHomeFreeBSD

tcp: Add CTLFLAG_VNET flag to some sysctls
ClosedPublic

Authored by zlei on Sep 23 2025, 3:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 26, 2:40 AM
Unknown Object (File)
Wed, Oct 22, 6:47 AM
Unknown Object (File)
Sat, Oct 18, 11:02 PM
Unknown Object (File)
Thu, Oct 16, 5:24 PM
Unknown Object (File)
Fri, Oct 10, 4:22 AM
Unknown Object (File)
Fri, Oct 10, 3:08 AM
Unknown Object (File)
Fri, Oct 10, 3:08 AM
Unknown Object (File)
Fri, Oct 10, 3:08 AM

Details

Summary

The two sysctls net.inet.tcp.hostcache.list and net.inet.tcp.hostcache.histo
are readonly and are to operate hostcache of vnet jails. Add CTLFLAG_VNET
flag to them since they are per-vnet sysctls. This does not have any impact of
reading the two sysctls, but sysctl -ANV net.inet.tcp.hostcache will report them
correctly.

MFC after: 3 days

Test Plan
# sysctl -ANV net.inet.tcp.hostcache
net.inet.tcp.hostcache.purgenow
net.inet.tcp.hostcache.histo
net.inet.tcp.hostcache.list
net.inet.tcp.hostcache.purge
net.inet.tcp.hostcache.prune
net.inet.tcp.hostcache.expire
net.inet.tcp.hostcache.count
net.inet.tcp.hostcache.bucketlimit
net.inet.tcp.hostcache.hashsize
net.inet.tcp.hostcache.cachelimit
net.inet.tcp.hostcache.enable

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable