Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip6_input.c
Show First 20 Lines • Show All 818 Lines • ▼ Show 20 Lines | if (ia->ia6_flags & IN6_IFF_NOTREADY) { | ||||
char ip6bufd[INET6_ADDRSTRLEN]; | char ip6bufd[INET6_ADDRSTRLEN]; | ||||
/* address is not ready, so discard the packet. */ | /* address is not ready, so discard the packet. */ | ||||
nd6log((LOG_INFO, | nd6log((LOG_INFO, | ||||
"ip6_input: packet to an unready address %s->%s\n", | "ip6_input: packet to an unready address %s->%s\n", | ||||
ip6_sprintf(ip6bufs, &ip6->ip6_src), | ip6_sprintf(ip6bufs, &ip6->ip6_src), | ||||
ip6_sprintf(ip6bufd, &ip6->ip6_dst))); | ip6_sprintf(ip6bufd, &ip6->ip6_dst))); | ||||
goto bad; | goto bad; | ||||
} | } | ||||
if (V_ip6_sav && !(rcvif->if_flags & IFF_LOOPBACK) && | if (V_ip6_sav && !(m->m_flags & M_LOOP) && | ||||
__predict_false(in6_localip_fib(&ip6->ip6_src, | __predict_false(in6_localip_fib(&ip6->ip6_src, | ||||
rcvif->if_fib))) { | rcvif->if_fib))) { | ||||
IP6STAT_INC(ip6s_badscope); /* XXX */ | IP6STAT_INC(ip6s_badscope); /* XXX */ | ||||
goto bad; | goto bad; | ||||
} | } | ||||
/* Count the packet in the ip address stats */ | /* Count the packet in the ip address stats */ | ||||
counter_u64_add(ia->ia_ifa.ifa_ipackets, 1); | counter_u64_add(ia->ia_ifa.ifa_ipackets, 1); | ||||
counter_u64_add(ia->ia_ifa.ifa_ibytes, m->m_pkthdr.len); | counter_u64_add(ia->ia_ifa.ifa_ibytes, m->m_pkthdr.len); | ||||
▲ Show 20 Lines • Show All 914 Lines • Show Last 20 Lines |