diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-11-27 12:25:31 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-11-27 12:25:31 +0000 |
commit | 28ff94c82b8c78f44c57f2b7a3f854c7349423c1 (patch) | |
tree | 730bb9458e26d874cfe15eb395d1678206dfca7a /sys/netinet/if_ether.c | |
parent | d70b558eaecf6823288e17f5683065768969bdad (diff) |
Since r1.106 we have a local variable referencing the receiving interface,
use it instead of dereferencing the mbuf once again. No functional change.
Diffstat (limited to 'sys/netinet/if_ether.c')
-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); |