Lines Matching defs:tcpopt
235 * tcpopt struct and return a bitmask saying which options were found.
238 tcp_parse_options(tcpha_t *tcpha, tcp_opt_t *tcpopt)
268 tcpopt->tcp_opt_mss = mss;
279 tcpopt->tcp_opt_wscale = TCP_MAX_WINSHIFT;
281 tcpopt->tcp_opt_wscale = up[2];
300 if ((tcp = tcpopt->tcp) == NULL) {
367 tcpopt->tcp_opt_ts_val = BE32_TO_U32(up+2);
368 tcpopt->tcp_opt_ts_ecr = BE32_TO_U32(up+6);
401 tcp_opt_t tcpopt;
407 tcpopt.tcp = NULL;
408 options = tcp_parse_options(tcpha, &tcpopt);
418 tcpopt.tcp_opt_mss = tcps->tcps_mss_def_ipv4;
420 tcpopt.tcp_opt_mss = tcps->tcps_mss_def_ipv6;
426 if (tcpopt.tcp_opt_mss < tcps->tcps_mss_min)
427 tcpopt.tcp_opt_mss = tcps->tcps_mss_min;
428 else if (tcpopt.tcp_opt_mss > mss_max)
429 tcpopt.tcp_opt_mss = mss_max;
434 tcp->tcp_snd_ws = tcpopt.tcp_opt_wscale;
448 tcp->tcp_ts_recent = tcpopt.tcp_opt_ts_val;
522 tcpopt.tcp_opt_mss -= connp->conn_ht_iphc_len +
538 tcp_mss_set(tcp, MIN(tcpopt.tcp_opt_mss, tcp->tcp_mss));
2263 tcp_opt_t tcpopt;
2801 if (!tcp_paws_check(tcp, tcpha, &tcpopt)) {
2811 tcpopt.tcp = tcp;
2816 (void) tcp_parse_options(tcpha, &tcpopt);
3115 TSTMP_GEQ(tcpopt.tcp_opt_ts_val, tcp->tcp_ts_recent) &&
3117 tcp->tcp_ts_recent = tcpopt.tcp_opt_ts_val;
4225 if (tcpopt.tcp_opt_ts_ecr != 0) {
4227 (int32_t)tcpopt.tcp_opt_ts_ecr);