Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip6_output.c
Show First 20 Lines • Show All 771 Lines • ▼ Show 20 Lines | if (IN6_IS_ADDR_MC_LINKLOCAL(&dst_sa.sin6_addr) || | ||||
} | } | ||||
} | } | ||||
nh = fib6_lookup(fibnum, &kdst, scopeid, NHR_NONE, | nh = fib6_lookup(fibnum, &kdst, scopeid, NHR_NONE, | ||||
m->m_pkthdr.flowid); | m->m_pkthdr.flowid); | ||||
if (nh == NULL) { | if (nh == NULL) { | ||||
IP6STAT_INC(ip6s_noroute); | IP6STAT_INC(ip6s_noroute); | ||||
/* No ifp in6_ifstat_inc(ifp, ifs6_out_discard); */ | /* No ifp in6_ifstat_inc(ifp, ifs6_out_discard); */ | ||||
error = EHOSTUNREACH;; | error = EHOSTUNREACH; | ||||
goto bad; | goto bad; | ||||
} | } | ||||
ifp = nh->nh_ifp; | ifp = nh->nh_ifp; | ||||
mtu = nh->nh_mtu; | mtu = nh->nh_mtu; | ||||
ia = ifatoia6(nh->nh_ifa); | ia = ifatoia6(nh->nh_ifa); | ||||
if (nh->nh_flags & NHF_GATEWAY) | if (nh->nh_flags & NHF_GATEWAY) | ||||
dst->sin6_addr = nh->gw6_sa.sin6_addr; | dst->sin6_addr = nh->gw6_sa.sin6_addr; | ||||
▲ Show 20 Lines • Show All 2,598 Lines • Show Last 20 Lines |