Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip6_input.c
Show First 20 Lines • Show All 582 Lines • ▼ Show 20 Lines | #endif /* IPSEC */ | ||||
*/ | */ | ||||
if (m->m_flags & M_EXT) { | if (m->m_flags & M_EXT) { | ||||
if (m->m_next) | if (m->m_next) | ||||
IP6STAT_INC(ip6s_mext2m); | IP6STAT_INC(ip6s_mext2m); | ||||
else | else | ||||
IP6STAT_INC(ip6s_mext1); | IP6STAT_INC(ip6s_mext1); | ||||
} else { | } else { | ||||
if (m->m_next) { | if (m->m_next) { | ||||
if (m->m_flags & M_LOOP) { | struct ifnet *ifp = (m->m_flags & M_LOOP) ? V_loif : rcvif; | ||||
IP6STAT_INC(ip6s_m2m[V_loif->if_index]); | int ifindex = ifp->if_index; | ||||
} else if (rcvif->if_index < IP6S_M2MMAX) | if (ifindex >= IP6S_M2MMAX) | ||||
IP6STAT_INC(ip6s_m2m[rcvif->if_index]); | ifindex = 0; | ||||
else | IP6STAT_INC(ip6s_m2m[ifindex]); | ||||
IP6STAT_INC(ip6s_m2m[0]); | |||||
} else | } else | ||||
IP6STAT_INC(ip6s_m1); | IP6STAT_INC(ip6s_m1); | ||||
} | } | ||||
in6_ifstat_inc(rcvif, ifs6_in_receive); | in6_ifstat_inc(rcvif, ifs6_in_receive); | ||||
IP6STAT_INC(ip6s_total); | IP6STAT_INC(ip6s_total); | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 1,146 Lines • Show Last 20 Lines |