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
F162431619: D52693.id.diff
Mon, Jul 13, 5:05 AM
Unknown Object (File)
Sun, Jul 12, 3:30 PM
Unknown Object (File)
Fri, Jul 10, 10:50 PM
Unknown Object (File)
Fri, Jul 10, 3:17 AM
Unknown Object (File)
Tue, Jul 7, 3:37 AM
Unknown Object (File)
Sat, Jul 4, 9:59 AM
Unknown Object (File)
Fri, Jul 3, 5:42 AM
Unknown Object (File)
Thu, Jul 2, 9:22 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