Lines Matching defs:tcp_opt
237 struct tcp_options_received *tcp_opt)
240 u32 options = tcp_opt->rcv_tsecr;
242 if (!tcp_opt->saw_tstamp) {
243 tcp_clear_options(tcp_opt);
250 tcp_opt->sack_ok = (options & TS_OPT_SACK) ? TCP_SACK_SEEN : 0;
252 if (tcp_opt->sack_ok && !READ_ONCE(net->ipv4.sysctl_tcp_sack))
258 tcp_opt->wscale_ok = 1;
259 tcp_opt->snd_wscale = options & TS_OPT_WSCALE_MASK;
320 struct tcp_options_received *tcp_opt,
344 req->ts_recent = tcp_opt->saw_tstamp ? tcp_opt->rcv_tsval : 0;
346 ireq->snd_wscale = tcp_opt->snd_wscale;
347 ireq->tstamp_ok = tcp_opt->saw_tstamp;
348 ireq->sack_ok = tcp_opt->sack_ok;
349 ireq->wscale_ok = tcp_opt->wscale_ok;
350 ireq->ecn_ok = !!(tcp_opt->rcv_tsecr & TS_OPT_ECN);
361 struct tcp_options_received tcp_opt;
377 memset(&tcp_opt, 0, sizeof(tcp_opt));
378 tcp_parse_options(net, skb, &tcp_opt, 0, NULL);
380 if (tcp_opt.saw_tstamp && tcp_opt.rcv_tsecr) {
384 tcp_opt.rcv_tsecr -= tsoff;
387 if (!cookie_timestamp_decode(net, &tcp_opt))
391 &tcp_opt, mss, tsoff);