diff options
author | 2013-11-27 12:25:30 +0000 | |
---|---|---|
committer | 2013-11-27 12:25:30 +0000 | |
commit | 555bc95f2b59267af2d9e9316ff61081d358621a (patch) | |
tree | 859a269b0b32d7e9490e8fec7566fa21a0860590 | |
parent | Instead of comparing the lower and higher addresses of all the multicast (diff) | |
download | wireguard-openbsd-555bc95f2b59267af2d9e9316ff61081d358621a.tar.xz wireguard-openbsd-555bc95f2b59267af2d9e9316ff61081d358621a.zip |
Since r1.106 we have a local variable referencing the receiving interface,
use it instead of dereferencing the mbuf once again. No functional change.
-rw-r--r-- | sys/netinet/if_ether.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index ecf3b89e1d6..a20420b15cf 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.c,v 1.112 2013/11/21 09:08:38 mpi Exp $ */ +/* $OpenBSD: if_ether.c,v 1.113 2013/11/27 12:25:30 mpi Exp $ */ /* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */ /* @@ -737,8 +737,7 @@ out: if (la == 0) goto out; rt = la->la_rt; - if (rt->rt_ifp->if_type == IFT_CARP && - m->m_pkthdr.rcvif->if_type != IFT_CARP) + if (rt->rt_ifp->if_type == IFT_CARP && ifp->if_type != IFT_CARP) goto out; bcopy(ea->arp_sha, ea->arp_tha, sizeof(ea->arp_sha)); sdl = SDL(rt->rt_gateway); |