sysctl_rtsock() has all necessary locking and doesn't need Giant to run.

While here add description.
This commit is contained in:
Gleb Smirnoff 2019-11-07 19:06:18 +00:00
parent 503f4e4736
commit 8a9a28c455
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354463

View File

@ -1970,7 +1970,8 @@ sysctl_rtsock(SYSCTL_HANDLER_ARGS)
return (error);
}
static SYSCTL_NODE(_net, PF_ROUTE, routetable, CTLFLAG_RD, sysctl_rtsock, "");
static SYSCTL_NODE(_net, PF_ROUTE, routetable, CTLFLAG_RD | CTLFLAG_MPSAFE,
sysctl_rtsock, "Return route tables and interface/address lists");
/*
* Definitions of protocols supported in the ROUTE domain.