diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-06-14 09:44:42 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-06-14 09:44:42 +0000 |
commit | 8590c53b6d471542cc30298ac39ac7361157ab52 (patch) | |
tree | fd11877216d27f956d4db30ce654c1f7b880a6d8 /sys/netinet | |
parent | ef7dbacaa471766ec40e170a49d20a27f360197f (diff) |
Store the source address associated with a route in its own chunk of
memory.
This will allow to unlink 'sruct rtentry' and 'struct ifaddr' to be able
to add route entries without needing an address.
ok sthen@, visa@, florian@
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/if_ether.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 54abf79ae6b..284571bb467 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.c,v 1.214 2016/06/10 20:33:29 vgross Exp $ */ +/* $OpenBSD: if_ether.c,v 1.215 2016/06/14 09:44:41 mpi Exp $ */ /* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */ /* @@ -389,7 +389,7 @@ arpresolve(struct ifnet *ifp, struct rtentry *rt0, struct mbuf *m, rt->rt_expire = time_uptime; if (la->la_asked++ < arp_maxtries) arprequest(ifp, - &satosin(rt->rt_ifa->ifa_addr)->sin_addr.s_addr, + &satosin(rt->rt_addr)->sin_addr.s_addr, &satosin(dst)->sin_addr.s_addr, ac->ac_enaddr); else { |