summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-06-23 13:22:19 +0000
committerbz <bz@FreeBSD.org>2009-06-23 13:22:19 +0000
commit1b28c68371f0b2cea5f21f97770eac8ffd1fe577 (patch)
treef37324a3dedc8b06750b9d8a41961593f1e8ab09
parent792757454a234e320aa476c9b9f29611b9eb770e (diff)
downloadFreeBSD-src-1b28c68371f0b2cea5f21f97770eac8ffd1fe577.zip
FreeBSD-src-1b28c68371f0b2cea5f21f97770eac8ffd1fe577.tar.gz
in6_rtqdrain() has been unused. Cleanup.
As this was the only consumer of net/route.h left remove that as well.
-rw-r--r--sys/netinet6/in6_rmx.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/sys/netinet6/in6_rmx.c b/sys/netinet6/in6_rmx.c
index 00f833a..2d70357 100644
--- a/sys/netinet6/in6_rmx.c
+++ b/sys/netinet6/in6_rmx.c
@@ -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
OpenPOWER on IntegriCloud