summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorzec <zec@FreeBSD.org>2009-06-01 21:29:54 +0000
committerzec <zec@FreeBSD.org>2009-06-01 21:29:54 +0000
commit904747c9f98f0e11c35daca161c7253a12c080f6 (patch)
treeade5598db4309eac29ffa636f4c9c6308ca384b5 /sys
parente7035c4cf492567e058158332850658be9cccdcb (diff)
downloadFreeBSD-src-904747c9f98f0e11c35daca161c7253a12c080f6.zip
FreeBSD-src-904747c9f98f0e11c35daca161c7253a12c080f6.tar.gz
V_loif is not an array but a pure pointer, so treat it as such.
Reviewed by: bz Approved by: julian (mentor)
Diffstat (limited to 'sys')
-rw-r--r--sys/contrib/pf/net/pf_ioctl.c2
-rw-r--r--sys/netinet6/ip6_input.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/contrib/pf/net/pf_ioctl.c b/sys/contrib/pf/net/pf_ioctl.c
index e211c6a..cb4533b 100644
--- a/sys/contrib/pf/net/pf_ioctl.c
+++ b/sys/contrib/pf/net/pf_ioctl.c
@@ -3717,7 +3717,7 @@ pf_check6_in(void *arg, struct mbuf **m, struct ifnet *ifp, int dir,
* order to support scoped addresses. In order to support stateful
* filtering we have change this to lo0 as it is the case in IPv4.
*/
- chk = pf_test6(PF_IN, (*m)->m_flags & M_LOOP ? &V_loif[0] : ifp, m,
+ chk = pf_test6(PF_IN, (*m)->m_flags & M_LOOP ? V_loif : ifp, m,
NULL, inp);
if (chk && *m) {
m_freem(*m);
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c
index 3847e2f..b9617bb 100644
--- a/sys/netinet6/ip6_input.c
+++ b/sys/netinet6/ip6_input.c
@@ -380,7 +380,7 @@ ip6_input(struct mbuf *m)
#define M2MMAX (sizeof(V_ip6stat.ip6s_m2m)/sizeof(V_ip6stat.ip6s_m2m[0]))
if (m->m_next) {
if (m->m_flags & M_LOOP) {
- V_ip6stat.ip6s_m2m[V_loif[0].if_index]++; /* XXX */
+ V_ip6stat.ip6s_m2m[V_loif->if_index]++;
} else if (m->m_pkthdr.rcvif->if_index < M2MMAX)
V_ip6stat.ip6s_m2m[m->m_pkthdr.rcvif->if_index]++;
else
OpenPOWER on IntegriCloud