Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_syncache.c
Show First 20 Lines • Show All 1,860 Lines • ▼ Show 20 Lines | if (sc->sc_port != 0) { | ||||
udp->uh_sport = htons(V_tcp_udp_tunneling_port); | udp->uh_sport = htons(V_tcp_udp_tunneling_port); | ||||
udp->uh_dport = sc->sc_port; | udp->uh_dport = sc->sc_port; | ||||
ulen = (tlen - sizeof(struct ip6_hdr)); | ulen = (tlen - sizeof(struct ip6_hdr)); | ||||
th = (struct tcphdr *)(udp + 1); | th = (struct tcphdr *)(udp + 1); | ||||
} else { | } else { | ||||
ip6->ip6_nxt = IPPROTO_TCP; | ip6->ip6_nxt = IPPROTO_TCP; | ||||
th = (struct tcphdr *)(ip6 + 1); | th = (struct tcphdr *)(ip6 + 1); | ||||
} | } | ||||
ip6->ip6_flow |= htonl(sc->sc_ip_tos << 20); | ip6->ip6_flow |= htonl(sc->sc_ip_tos << IPV6_FLOWLABEL_LEN); | ||||
} | } | ||||
#endif | #endif | ||||
#if defined(INET6) && defined(INET) | #if defined(INET6) && defined(INET) | ||||
else | else | ||||
#endif | #endif | ||||
#ifdef INET | #ifdef INET | ||||
{ | { | ||||
ip = mtod(m, struct ip *); | ip = mtod(m, struct ip *); | ||||
▲ Show 20 Lines • Show All 696 Lines • Show Last 20 Lines |