Date: Tue, 19 Jul 2005 03:54:17 GMT From: soc-anders <soc-anders@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 80500 for review Message-ID: <200507190354.j6J3sHnv013021@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=80500 Change 80500 by soc-anders@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 **);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507190354.j6J3sHnv013021>