Searched refs:tcp_opt (Results 1 – 2 of 2) sorted by relevance
/net/ipv4/ |
D | syncookies.c | 227 bool cookie_check_timestamp(struct tcp_options_received *tcp_opt, in cookie_check_timestamp() argument 231 u32 options = tcp_opt->rcv_tsecr & TSMASK; in cookie_check_timestamp() 233 if (!tcp_opt->saw_tstamp) { in cookie_check_timestamp() 234 tcp_clear_options(tcp_opt); in cookie_check_timestamp() 241 tcp_opt->sack_ok = (options & (1 << 4)) ? TCP_SACK_SEEN : 0; in cookie_check_timestamp() 246 if (tcp_opt->sack_ok && !sysctl_tcp_sack) in cookie_check_timestamp() 252 tcp_opt->wscale_ok = 1; in cookie_check_timestamp() 253 tcp_opt->snd_wscale = options & 0xf; in cookie_check_timestamp() 261 struct tcp_options_received tcp_opt; in cookie_v4_check() local 287 memset(&tcp_opt, 0, sizeof(tcp_opt)); in cookie_v4_check() [all …]
|
/net/ipv6/ |
D | syncookies.c | 157 struct tcp_options_received tcp_opt; in cookie_v6_check() local 183 memset(&tcp_opt, 0, sizeof(tcp_opt)); in cookie_v6_check() 184 tcp_parse_options(skb, &tcp_opt, 0, NULL); in cookie_v6_check() 186 if (!cookie_check_timestamp(&tcp_opt, sock_net(sk), &ecn_ok)) in cookie_v6_check() 224 ireq->snd_wscale = tcp_opt.snd_wscale; in cookie_v6_check() 225 ireq->sack_ok = tcp_opt.sack_ok; in cookie_v6_check() 226 ireq->wscale_ok = tcp_opt.wscale_ok; in cookie_v6_check() 227 ireq->tstamp_ok = tcp_opt.saw_tstamp; in cookie_v6_check() 228 req->ts_recent = tcp_opt.saw_tstamp ? tcp_opt.rcv_tsval : 0; in cookie_v6_check() 229 treq->snt_synack = tcp_opt.saw_tstamp ? tcp_opt.rcv_tsecr : 0; in cookie_v6_check()
|