svn commit: r194702 - head/sys/netinet6

Bjoern A. Zeeb bz at FreeBSD.org
Tue Jun 23 13:22:21 UTC 2009


Author: bz
Date: Tue Jun 23 13:22:19 2009
New Revision: 194702
URL: http://svn.freebsd.org/changeset/base/194702

Log:
  in6_rtqdrain() has been unused.  Cleanup.
  As this was the only consumer of net/route.h left remove that as well.

Modified:
  head/sys/netinet6/in6_rmx.c

Modified: head/sys/netinet6/in6_rmx.c
==============================================================================
--- head/sys/netinet6/in6_rmx.c	Tue Jun 23 13:17:25 2009	(r194701)
+++ head/sys/netinet6/in6_rmx.c	Tue Jun 23 13:22:19 2009	(r194702)
@@ -90,7 +90,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/vimage.h>
 
 #include <net/if.h>
-#include <net/route.h>
 #include <net/vnet.h>
 
 #include <netinet/in.h>
@@ -409,28 +408,6 @@ in6_mtutimo(void *rock)
 	CURVNET_RESTORE();
 }
 
-#if 0
-void
-in6_rtqdrain(void)
-{
-	INIT_VNET_NET(curvnet);
-	struct radix_node_head *rnh;
-	struct rtqk_arg arg;
-
-	rnh = rt_tables_get_rnh(0, AF_INET6);
-	if (rnh == NULL)
-		panic("%s: rnh == NULL", __func__);
-	arg.found = arg.killed = 0;
-	arg.rnh = rnh;
-	arg.nextstop = 0;
-	arg.draining = 1;
-	arg.updating = 0;
-	RADIX_NODE_HEAD_LOCK(rnh);
-	rnh->rnh_walktree(rnh, in6_rtqkill, &arg);
-	RADIX_NODE_HEAD_UNLOCK(rnh);
-}
-#endif
-
 /*
  * Initialize our routing tree.
  * XXX MRT When off == 0, we are being called from vfs_export.c


More information about the svn-src-all mailing list