Lines Matching refs:foc

120 					     struct tcp_fastopen_cookie *foc)  in __tcp_fastopen_cookie_gen_cipher()  argument
127 foc->val[0] = cpu_to_le64(siphash(&iph->saddr, in __tcp_fastopen_cookie_gen_cipher()
131 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher()
138 foc->val[0] = cpu_to_le64(siphash(&ip6h->saddr, in __tcp_fastopen_cookie_gen_cipher()
142 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher()
155 struct tcp_fastopen_cookie *foc) in tcp_fastopen_cookie_gen() argument
162 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[0], foc); in tcp_fastopen_cookie_gen()
217 struct tcp_fastopen_cookie *foc = valid_foc; in tcp_fastopen_cookie_gen_check() local
226 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[i], foc); in tcp_fastopen_cookie_gen_check()
227 if (tcp_fastopen_cookie_match(foc, orig)) { in tcp_fastopen_cookie_gen_check()
231 foc = &search_foc; in tcp_fastopen_cookie_gen_check()
347 struct tcp_fastopen_cookie *foc, in tcp_try_fastopen() argument
356 if (foc->len == 0) /* Client requests a cookie */ in tcp_try_fastopen()
360 (syn_data || foc->len >= 0) && in tcp_try_fastopen()
362 foc->len = -1; in tcp_try_fastopen()
369 if (foc->len == 0) { in tcp_try_fastopen()
372 } else if (foc->len > 0) { in tcp_try_fastopen()
373 ret = tcp_fastopen_cookie_gen_check(sk, req, skb, foc, in tcp_try_fastopen()
392 valid_foc.exp = foc->exp; in tcp_try_fastopen()
393 *foc = valid_foc; in tcp_try_fastopen()
397 foc->len = -1; in tcp_try_fastopen()
407 valid_foc.exp = foc->exp; in tcp_try_fastopen()
408 *foc = valid_foc; in tcp_try_fastopen()