diff options
author | ae <ae@FreeBSD.org> | 2013-04-16 11:19:13 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2013-04-16 11:19:13 +0000 |
commit | bb1dffc2b9630332bf58e5e52521bade06210965 (patch) | |
tree | 5b5475779e7af4cad51a220e1bfec75123cff1de /sys/netinet6/ip6_input.c | |
parent | e7b578dd8b76919f0d20ad5eba04df53d774ee3c (diff) | |
download | FreeBSD-src-bb1dffc2b9630332bf58e5e52521bade06210965.zip FreeBSD-src-bb1dffc2b9630332bf58e5e52521bade06210965.tar.gz |
Use IP6S_M2MMAX macro.
Diffstat (limited to 'sys/netinet6/ip6_input.c')
-rw-r--r-- | sys/netinet6/ip6_input.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index fcbe4cb..51af22b 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -466,18 +466,16 @@ ip6_input(struct mbuf *m) else IP6STAT_INC(ip6s_mext1); } else { -#define M2MMAX (sizeof(V_ip6stat.ip6s_m2m)/sizeof(V_ip6stat.ip6s_m2m[0])) if (m->m_next) { if (m->m_flags & M_LOOP) { IP6STAT_INC(ip6s_m2m[V_loif->if_index]); - } else if (m->m_pkthdr.rcvif->if_index < M2MMAX) + } else if (m->m_pkthdr.rcvif->if_index < IP6S_M2MMAX) IP6STAT_INC( ip6s_m2m[m->m_pkthdr.rcvif->if_index]); else IP6STAT_INC(ip6s_m2m[0]); } else IP6STAT_INC(ip6s_m1); -#undef M2MMAX } /* drop the packet if IPv6 operation is disabled on the IF */ |