Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip6_output.c
Show First 20 Lines • Show All 766 Lines • ▼ Show 20 Lines | if (nh == NULL) { | ||||
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; | ||||
else if (fwd_tag != NULL) | |||||
dst->sin6_addr = dst_sa.sin6_addr; | |||||
nonh6lookup: | nonh6lookup: | ||||
; | ; | ||||
} | } | ||||
/* Then nh (for unicast) and ifp must be non-NULL valid values. */ | /* Then nh (for unicast) and ifp must be non-NULL valid values. */ | ||||
if ((flags & IPV6_FORWARDING) == 0) { | if ((flags & IPV6_FORWARDING) == 0) { | ||||
/* XXX: the FORWARDING flag can be set for mrouting. */ | /* XXX: the FORWARDING flag can be set for mrouting. */ | ||||
in6_ifstat_inc(ifp, ifs6_out_request); | in6_ifstat_inc(ifp, ifs6_out_request); | ||||
▲ Show 20 Lines • Show All 2,602 Lines • Show Last 20 Lines |