svn commit: r231224 - stable/7/sys/net

Bjoern A. Zeeb bz at FreeBSD.org
Wed Feb 8 19:20:11 UTC 2012


Author: bz
Date: Wed Feb  8 19:20:11 2012
New Revision: 231224
URL: http://svn.freebsd.org/changeset/base/231224

Log:
  MFC r223359:
  
   Garbage collect never used global, sysctl, externs.

Modified:
  stable/7/sys/net/route.c
  stable/7/sys/net/route.h
Directory Properties:
  stable/7/sys/   (props changed)

Modified: stable/7/sys/net/route.c
==============================================================================
--- stable/7/sys/net/route.c	Wed Feb  8 18:51:25 2012	(r231223)
+++ stable/7/sys/net/route.c	Wed Feb  8 19:20:11 2012	(r231224)
@@ -130,12 +130,6 @@ static void rt_maskedcopy(struct sockadd
 
 static uma_zone_t rtzone;		/* Routing table UMA zone. */
 
-#if 0
-/* default fib for tunnels to use */
-u_int tunnel_fib = 0;
-SYSCTL_INT(_net, OID_AUTO, tunnelfib, CTLFLAG_RD, &tunnel_fib, 0, "");
-#endif
-
 /*
  * handler for net.my_fibnum
  */

Modified: stable/7/sys/net/route.h
==============================================================================
--- stable/7/sys/net/route.h	Wed Feb  8 18:51:25 2012	(r231223)
+++ stable/7/sys/net/route.h	Wed Feb  8 19:20:11 2012	(r231224)
@@ -83,8 +83,6 @@ struct rt_metrics {
 #define	RTTTOPRHZ(r)	((r) / (RTM_RTTUNIT / PR_SLOWHZ))
 
 extern u_int rt_numfibs;	/* number fo usable routing tables */
-extern u_int tunnel_fib;	/* tunnels use these */
-extern u_int fwd_fib;		/* packets being forwarded use these routes */
 /*
  * XXX kernel function pointer `rt_output' is visible to applications.
  */


More information about the svn-src-stable-7 mailing list