Lines Matching refs:tcp_opt

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