Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_subr.c
Show First 20 Lines • Show All 1,999 Lines • ▼ Show 20 Lines | #endif | ||||
} else | } else | ||||
optlen = 0; | optlen = 0; | ||||
#ifdef INET6 | #ifdef INET6 | ||||
if (isipv6) { | if (isipv6) { | ||||
if (uh) { | if (uh) { | ||||
ulen = tlen - sizeof(struct ip6_hdr); | ulen = tlen - sizeof(struct ip6_hdr); | ||||
uh->uh_ulen = htons(ulen); | uh->uh_ulen = htons(ulen); | ||||
} | } | ||||
ip6->ip6_flow = htonl(ect << 20); | ip6->ip6_flow = htonl(ect << IPV6_FLOWLABEL_LEN); | ||||
ip6->ip6_vfc = IPV6_VERSION; | ip6->ip6_vfc = IPV6_VERSION; | ||||
if (port) | if (port) | ||||
ip6->ip6_nxt = IPPROTO_UDP; | ip6->ip6_nxt = IPPROTO_UDP; | ||||
else | else | ||||
ip6->ip6_nxt = IPPROTO_TCP; | ip6->ip6_nxt = IPPROTO_TCP; | ||||
ip6->ip6_plen = htons(tlen - sizeof(*ip6)); | ip6->ip6_plen = htons(tlen - sizeof(*ip6)); | ||||
} | } | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 2,579 Lines • Show Last 20 Lines |