PERFORCE change 80500 for review
soc-anders
soc-anders at FreeBSD.org
Tue Jul 19 03:54:19 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=80500
Change 80500 by soc-anders at soc-anders_gimli on 2005/07/19 03:53:41
Added sysctl variables net.route.rtstat and net.route.rttrash.
Affected files ...
.. //depot/projects/soc2005/ifcleanup/src/src/sys/net/route.c#2 edit
Differences ...
==== //depot/projects/soc2005/ifcleanup/src/src/sys/net/route.c#2 (text+ko) ====
@@ -40,6 +40,7 @@
#include <sys/socket.h>
#include <sys/domain.h>
#include <sys/kernel.h>
+#include <sys/sysctl.h>
#include <net/if.h>
#include <net/route.h>
@@ -54,6 +55,12 @@
static int rttrash; /* routes not in table but not freed */
+SYSCTL_DECL(_net_route);
+SYSCTL_STRUCT(_net_route, OID_AUTO, rtstat, CTLFLAG_RD,
+ &rtstat, rtstat, "Routing Statistics (struct rtstat, net/route.h)");
+SYSCTL_INT(_net_route, OID_AUTO, rttrash, CTLFLAG_RD,
+ &rttrash, 0, "Routes not in table but not freed");
+
static void rt_maskedcopy(struct sockaddr *,
struct sockaddr *, struct sockaddr *);
static void rtable_init(void **);
More information about the p4-projects
mailing list