svn commit: r354463 - head/sys/net
Gleb Smirnoff
glebius at FreeBSD.org
Thu Nov 7 19:06:19 UTC 2019
Author: glebius
Date: Thu Nov 7 19:06:18 2019
New Revision: 354463
URL: https://svnweb.freebsd.org/changeset/base/354463
Log:
sysctl_rtsock() has all necessary locking and doesn't need Giant to run.
While here add description.
Modified:
head/sys/net/rtsock.c
Modified: head/sys/net/rtsock.c
==============================================================================
--- head/sys/net/rtsock.c Thu Nov 7 18:29:51 2019 (r354462)
+++ head/sys/net/rtsock.c Thu Nov 7 19:06:18 2019 (r354463)
@@ -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.
More information about the svn-src-all
mailing list