summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2014-03-18 14:55:50 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2014-03-18 14:55:50 +0000
commit67ba744df97a720054fc9383e58231472fb65214 (patch)
tree28554c24645e3c76c83ed0d233be73727c49d6b9
parent017bb18ef2cc691a653a146a52aca21adf140752 (diff)
Notify userland via the routing socket when ARP resolution completes;
discussed with claudio@ at n2k14, ok mpi
-rw-r--r--sys/netinet/if_ether.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 5a49c5acd61..d73018f7e78 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ether.c,v 1.121 2014/03/18 10:47:34 mpi Exp $ */
+/* $OpenBSD: if_ether.c,v 1.122 2014/03/18 14:55:49 mikeb Exp $ */
/* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */
/*
@@ -694,6 +694,7 @@ in_arpinput(struct mbuf *m)
rt->rt_expire = time_second + arpt_keep;
rt->rt_flags &= ~RTF_REJECT;
la->la_asked = 0;
+ rt_sendmsg(rt, RTM_RESOLVE, rt->rt_ifp->if_rdomain);
while ((mh = la->la_hold_head) != NULL) {
if ((la->la_hold_head = mh->m_nextpkt) == NULL)
la->la_hold_tail = NULL;