Lines Matching refs:foc
137 struct tcp_fastopen_cookie *foc) in __tcp_fastopen_cookie_gen_cipher() argument
144 foc->val[0] = cpu_to_le64(siphash(&iph->saddr, in __tcp_fastopen_cookie_gen_cipher()
148 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher()
155 foc->val[0] = cpu_to_le64(siphash(&ip6h->saddr, in __tcp_fastopen_cookie_gen_cipher()
159 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen_cipher()
172 struct tcp_fastopen_cookie *foc) in tcp_fastopen_cookie_gen() argument
179 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[0], foc); in tcp_fastopen_cookie_gen()
234 struct tcp_fastopen_cookie *foc = valid_foc; in tcp_fastopen_cookie_gen_check() local
243 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[i], foc); in tcp_fastopen_cookie_gen_check()
244 if (tcp_fastopen_cookie_match(foc, orig)) { in tcp_fastopen_cookie_gen_check()
248 foc = &search_foc; in tcp_fastopen_cookie_gen_check()
363 struct tcp_fastopen_cookie *foc, in tcp_try_fastopen() argument
372 if (foc->len == 0) /* Client requests a cookie */ in tcp_try_fastopen()
376 (syn_data || foc->len >= 0) && in tcp_try_fastopen()
378 foc->len = -1; in tcp_try_fastopen()
385 if (foc->len == 0) { in tcp_try_fastopen()
388 } else if (foc->len > 0) { in tcp_try_fastopen()
389 ret = tcp_fastopen_cookie_gen_check(sk, req, skb, foc, in tcp_try_fastopen()
408 valid_foc.exp = foc->exp; in tcp_try_fastopen()
409 *foc = valid_foc; in tcp_try_fastopen()
413 foc->len = -1; in tcp_try_fastopen()
423 valid_foc.exp = foc->exp; in tcp_try_fastopen()
424 *foc = valid_foc; in tcp_try_fastopen()