diff options
author | glebius <glebius@FreeBSD.org> | 2005-08-09 08:39:56 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-08-09 08:39:56 +0000 |
commit | f2edd835a70c8c4dbde8caf8d9f28cc02446c2c2 (patch) | |
tree | 583b93a3034a3becc01bc742fa977a85601c9cff /sys/netinet/if_ether.c | |
parent | 4d15123a5e5e6ac11cc9299d2b1775e0d8f14e54 (diff) | |
download | FreeBSD-src-f2edd835a70c8c4dbde8caf8d9f28cc02446c2c2.zip FreeBSD-src-f2edd835a70c8c4dbde8caf8d9f28cc02446c2c2.tar.gz |
In preparation for fixing races in ARP (and probably in other
L2/L3 mappings) make rt_check() return a locked rtentry.
Diffstat (limited to 'sys/netinet/if_ether.c')
-rw-r--r-- | sys/netinet/if_ether.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 83e5449..ed325d7 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -376,6 +376,7 @@ arpresolve(struct ifnet *ifp, struct rtentry *rt0, struct mbuf *m, m_freem(m); return error; } + RT_UNLOCK(rt); if (m->m_flags & M_BCAST) { /* broadcast */ (void)memcpy(desten, ifp->if_broadcastaddr, ifp->if_addrlen); |