Lines Matching defs:tcpopt
2018 * tcpopt struct and return a bitmask saying which options were found.
2021 tcp_parse_options(tcph_t *tcph, tcp_opt_t *tcpopt)
2051 tcpopt->tcp_opt_mss = mss;
2062 tcpopt->tcp_opt_wscale = TCP_MAX_WINSHIFT;
2064 tcpopt->tcp_opt_wscale = up[2];
2083 if ((tcp = tcpopt->tcp) == NULL) {
2151 tcpopt->tcp_opt_ts_val = BE32_TO_U32(up+2);
2152 tcpopt->tcp_opt_ts_ecr = BE32_TO_U32(up+6);
2234 tcp_opt_t tcpopt;
2238 tcpopt.tcp = NULL;
2239 options = tcp_parse_options(tcph, &tcpopt);
2248 tcpopt.tcp_opt_mss = tcp_mss_def_ipv4;
2252 if (tcpopt.tcp_opt_mss < tcp_mss_min)
2253 tcpopt.tcp_opt_mss = tcp_mss_min;
2254 else if (tcpopt.tcp_opt_mss > mss_max)
2255 tcpopt.tcp_opt_mss = mss_max;
2260 tcp->tcp_snd_ws = tcpopt.tcp_opt_wscale;
2274 tcp->tcp_ts_recent = tcpopt.tcp_opt_ts_val;
2342 tcpopt.tcp_opt_mss -= tcp->tcp_hdr_len -
2356 tcp_mss_set(tcp, MIN(tcpopt.tcp_opt_mss, tcp->tcp_mss));
2629 tcp_opt_t tcpopt;
2951 if (!tcp_paws_check(tcp, (tcph_t *)tcph, &tcpopt)) {
2962 tcpopt.tcp = tcp;
2967 (void) tcp_parse_options((tcph_t *)tcph, &tcpopt);
3174 TSTMP_GEQ(tcpopt.tcp_opt_ts_val, tcp->tcp_ts_recent) &&
3176 tcp->tcp_ts_recent = tcpopt.tcp_opt_ts_val;
3845 if (tcpopt.tcp_opt_ts_ecr != 0) {
3847 tcpopt.tcp_opt_ts_ecr));
5209 tcp_opt_t tcpopt;
5225 if (!tcp_paws_check(tcp, tcph, &tcpopt)) {
5339 TSTMP_GEQ(tcpopt.tcp_opt_ts_val, tcp->tcp_ts_recent) &&
5341 tcp->tcp_ts_recent = tcpopt.tcp_opt_ts_val;