diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-10-22 17:48:35 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-10-22 17:48:35 +0000 |
commit | 739de27d93b04590df01255c8258c80d4efbf438 (patch) | |
tree | f67e56b9f4da58302736ba41b4ad7584a3aa5f8d /sys/net/if.c | |
parent | fc19a686339eb476057c8b3b989db339efea3f4c (diff) |
Kill link_rtrequest(), introduce in 1990 to "fix" the result
of rt_getifa() when adding link level route from outside the
kernel.
ok claudio@
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 332303834b2..91e41f762d8 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.392 2015/10/22 16:44:54 mpi Exp $ */ +/* $OpenBSD: if.c,v 1.393 2015/10/22 17:48:34 mpi Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -1274,30 +1274,6 @@ ifaof_ifpforaddr(struct sockaddr *addr, struct ifnet *ifp) } /* - * Default action when installing a route with a Link Level gateway. - * Lookup an appropriate real ifa to point to. - * This should be moved to /sys/net/link.c eventually. - */ -void -link_rtrequest(int cmd, struct rtentry *rt) -{ - struct ifaddr *ifa; - struct sockaddr *dst; - struct ifnet *ifp; - - if (cmd != RTM_ADD || ((ifa = rt->rt_ifa) == 0) || - ((ifp = ifa->ifa_ifp) == 0) || ((dst = rt_key(rt)) == 0)) - return; - if ((ifa = ifaof_ifpforaddr(dst, ifp)) != NULL) { - ifa->ifa_refcnt++; - ifafree(rt->rt_ifa); - rt->rt_ifa = ifa; - if (ifa->ifa_rtrequest && ifa->ifa_rtrequest != link_rtrequest) - ifa->ifa_rtrequest(cmd, rt); - } -} - -/* * Default action when installing a local route on a point-to-point * interface. */ |