mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
sockets: Add sysctl flag CTLFLAG_TUN to loader tunable
The sysctl variable 'kern.ipc.maxsockets' is actually a loader tunable. Add sysctl flag CTLFLAG_TUN to it so that `sysctl -T` will report it correctly. No functional change intended. Reviewed by: kib, imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D42113 (cherry picked from commit 978be1ee5d5fef983b4163955e15c4269c0ec76d)
This commit is contained in:
parent
b1456fd620
commit
e4f97a1ec7
1 changed files with 2 additions and 2 deletions
|
|
@ -366,8 +366,8 @@ sysctl_maxsockets(SYSCTL_HANDLER_ARGS)
|
|||
return (error);
|
||||
}
|
||||
SYSCTL_PROC(_kern_ipc, OID_AUTO, maxsockets,
|
||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, &maxsockets, 0,
|
||||
sysctl_maxsockets, "IU",
|
||||
CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_NOFETCH | CTLFLAG_MPSAFE,
|
||||
&maxsockets, 0, sysctl_maxsockets, "IU",
|
||||
"Maximum number of sockets available");
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue