summaryrefslogtreecommitdiff
path: root/sys/netinet6/ip6_mroute.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-07-08 08:48:36 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-07-08 08:48:36 +0000
commitadb8d79f68158204c69cdb82c1820d63f039dbc0 (patch)
tree8657a1135060069423804bede82bc3bd85d53196 /sys/netinet6/ip6_mroute.c
parentc29f097509f63ada9244c800edb94327c2c07867 (diff)
Pass an interface index instead of a pointer to in6_addr2scopeid().
ok millert@
Diffstat (limited to 'sys/netinet6/ip6_mroute.c')
-rw-r--r--sys/netinet6/ip6_mroute.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c
index c2ea872015b..406b8653f95 100644
--- a/sys/netinet6/ip6_mroute.c
+++ b/sys/netinet6/ip6_mroute.c
@@ -1475,11 +1475,11 @@ ip6_mdq(struct mbuf *m, struct ifnet *ifp, struct mf6c *rt)
if ((mif6table[rt->mf6c_parent].m6_flags &
MIFF_REGISTER) == 0 &&
(mif6table[mifi].m6_flags & MIFF_REGISTER) == 0 &&
- (in6_addr2scopeid(ifp, &ip6->ip6_dst) !=
- in6_addr2scopeid(mif6table[mifi].m6_ifp,
+ (in6_addr2scopeid(ifp->if_index, &ip6->ip6_dst) !=
+ in6_addr2scopeid(mif6table[mifi].m6_ifp->if_index,
&ip6->ip6_dst) ||
- in6_addr2scopeid(ifp, &ip6->ip6_src) !=
- in6_addr2scopeid(mif6table[mifi].m6_ifp,
+ in6_addr2scopeid(ifp->if_index, &ip6->ip6_src) !=
+ in6_addr2scopeid(mif6table[mifi].m6_ifp->if_index,
&ip6->ip6_src))) {
ip6stat.ip6s_badscope++;
continue;