Lines Matching refs:tcp_opt
236 struct tcp_options_received *tcp_opt) in cookie_timestamp_decode() argument
239 u32 options = tcp_opt->rcv_tsecr; in cookie_timestamp_decode()
241 if (!tcp_opt->saw_tstamp) { in cookie_timestamp_decode()
242 tcp_clear_options(tcp_opt); in cookie_timestamp_decode()
249 tcp_opt->sack_ok = (options & TS_OPT_SACK) ? TCP_SACK_SEEN : 0; in cookie_timestamp_decode()
251 if (tcp_opt->sack_ok && !READ_ONCE(net->ipv4.sysctl_tcp_sack)) in cookie_timestamp_decode()
257 tcp_opt->wscale_ok = 1; in cookie_timestamp_decode()
258 tcp_opt->snd_wscale = options & TS_OPT_WSCALE_MASK; in cookie_timestamp_decode()
318 struct tcp_options_received *tcp_opt, in cookie_tcp_reqsk_alloc() argument
342 req->ts_recent = tcp_opt->saw_tstamp ? tcp_opt->rcv_tsval : 0; in cookie_tcp_reqsk_alloc()
344 ireq->snd_wscale = tcp_opt->snd_wscale; in cookie_tcp_reqsk_alloc()
345 ireq->tstamp_ok = tcp_opt->saw_tstamp; in cookie_tcp_reqsk_alloc()
346 ireq->sack_ok = tcp_opt->sack_ok; in cookie_tcp_reqsk_alloc()
347 ireq->wscale_ok = tcp_opt->wscale_ok; in cookie_tcp_reqsk_alloc()
348 ireq->ecn_ok = !!(tcp_opt->rcv_tsecr & TS_OPT_ECN); in cookie_tcp_reqsk_alloc()
359 struct tcp_options_received tcp_opt; in cookie_tcp_check() local
375 memset(&tcp_opt, 0, sizeof(tcp_opt)); in cookie_tcp_check()
376 tcp_parse_options(net, skb, &tcp_opt, 0, NULL); in cookie_tcp_check()
378 if (tcp_opt.saw_tstamp && tcp_opt.rcv_tsecr) { in cookie_tcp_check()
382 tcp_opt.rcv_tsecr -= tsoff; in cookie_tcp_check()
385 if (!cookie_timestamp_decode(net, &tcp_opt)) in cookie_tcp_check()
389 &tcp_opt, mss, tsoff); in cookie_tcp_check()