diff options
author | 2002-06-09 07:50:57 +0000 | |
---|---|---|
committer | 2002-06-09 07:50:57 +0000 | |
commit | e06a0c91b6f5bed4ad2eee193d69215b6fce83ee (patch) | |
tree | 8f6dec32b3815f7633e53cfbe1caec201ee12f4c | |
parent | optimize build time. based on PR 2715 (diff) | |
download | wireguard-openbsd-e06a0c91b6f5bed4ad2eee193d69215b6fce83ee.tar.xz wireguard-openbsd-e06a0c91b6f5bed4ad2eee193d69215b6fce83ee.zip |
support published arp entries again. PR 2635 (confirmed by submitter).
-rw-r--r-- | sys/netinet/if_ether.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 9b0257ae8bf..24ec0fa84bd 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.c,v 1.43 2002/06/09 05:25:50 itojun Exp $ */ +/* $OpenBSD: if_ether.c,v 1.44 2002/06/09 07:50:57 itojun Exp $ */ /* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */ /* @@ -545,6 +545,17 @@ in_arpinput(m) } } + if (ia == NULL) { + struct ifaddr *ifa; + + TAILQ_FOREACH(ifa, &m->m_pkthdr.rcvif->if_addrlist, ifa_list) { + if (ifa->ifa_addr->sa_family == AF_INET) + break; + } + if (ifa) + ia = (struct in_ifaddr *)ifa; + } + if (ia == NULL) goto out; |