aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/in_rmx.c
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2014-05-03 16:28:54 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2014-05-03 16:28:54 +0000
commitb980262e63b74e8e2a12f6c0f1765c5e03b7e382 (patch)
treeead145db7b50543384146f61c12f563b6f00c063 /sys/netinet/in_rmx.c
parent0eca77fd24bbe08916aae3c07a8ec1e8ac8a7fb8 (diff)
downloadsrc-b980262e63b74e8e2a12f6c0f1765c5e03b7e382.tar.gz
src-b980262e63b74e8e2a12f6c0f1765c5e03b7e382.zip
Pass radix head ptr along with rte to rtexpunge().
Rename rtexpunge to rt_expunge().
Notes
Notes: svn path=/head/; revision=265279
Diffstat (limited to 'sys/netinet/in_rmx.c')
-rw-r--r--sys/netinet/in_rmx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/in_rmx.c b/sys/netinet/in_rmx.c
index 2771ad0f68d0..fb0afb50ceac 100644
--- a/sys/netinet/in_rmx.c
+++ b/sys/netinet/in_rmx.c
@@ -169,9 +169,8 @@ in_clsroute(struct radix_node *rn, struct radix_node_head *head)
if (V_rtq_reallyold != 0) {
rt->rt_flags |= RTPRF_OURS;
rt->rt_expire = time_uptime + V_rtq_reallyold;
- } else {
- rtexpunge(rt);
- }
+ } else
+ rt_expunge(head, rt);
}
struct rtqk_arg {
@@ -388,6 +387,7 @@ in_detachhead(void **head, int off)
* plug back in.
*/
struct in_ifadown_arg {
+ struct radix_node_head *rnh;
struct ifaddr *ifa;
int del;
};
@@ -411,7 +411,7 @@ in_ifadownkill(struct radix_node *rn, void *xap)
* Disconnect it from the tree and permit protocols
* to cleanup.
*/
- rtexpunge(rt);
+ rt_expunge(ap->rnh, rt);
/*
* At this point it is an rttrash node, and in case
* the above is the only reference we must free it.