Searched refs:tcp_opt (Results 1 – 2 of 2) sorted by relevance
236 struct tcp_options_received *tcp_opt) in cookie_timestamp_decode() argument239 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 && !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()264 bool cookie_ecn_ok(const struct tcp_options_received *tcp_opt, in cookie_ecn_ok() argument267 bool ecn_ok = tcp_opt->rcv_tsecr & TS_OPT_ECN; in cookie_ecn_ok()[all …]
130 struct tcp_options_received tcp_opt; in cookie_v6_check() local159 memset(&tcp_opt, 0, sizeof(tcp_opt)); in cookie_v6_check()160 tcp_parse_options(sock_net(sk), skb, &tcp_opt, 0, NULL); in cookie_v6_check()162 if (tcp_opt.saw_tstamp && tcp_opt.rcv_tsecr) { in cookie_v6_check()166 tcp_opt.rcv_tsecr -= tsoff; in cookie_v6_check()169 if (!cookie_timestamp_decode(sock_net(sk), &tcp_opt)) in cookie_v6_check()205 ireq->snd_wscale = tcp_opt.snd_wscale; in cookie_v6_check()206 ireq->sack_ok = tcp_opt.sack_ok; in cookie_v6_check()207 ireq->wscale_ok = tcp_opt.wscale_ok; in cookie_v6_check()208 ireq->tstamp_ok = tcp_opt.saw_tstamp; in cookie_v6_check()[all …]