Lines Matching refs:foc
76 struct tcp_fastopen_cookie *foc) in __tcp_fastopen_cookie_gen() argument
84 crypto_cipher_encrypt_one(ctx->tfm, foc->val, path); in __tcp_fastopen_cookie_gen()
85 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen()
100 struct tcp_fastopen_cookie *foc) in tcp_fastopen_cookie_gen() argument
106 return __tcp_fastopen_cookie_gen(path, foc); in tcp_fastopen_cookie_gen()
120 return __tcp_fastopen_cookie_gen(buf, foc); in tcp_fastopen_cookie_gen()
258 struct tcp_fastopen_cookie *foc, in tcp_try_fastopen() argument
265 if (foc->len == 0) /* Client requests a cookie */ in tcp_try_fastopen()
269 (syn_data || foc->len >= 0) && in tcp_try_fastopen()
271 foc->len = -1; in tcp_try_fastopen()
278 if (foc->len >= 0 && /* Client presents or requests a cookie */ in tcp_try_fastopen()
280 foc->len == TCP_FASTOPEN_COOKIE_SIZE && in tcp_try_fastopen()
281 foc->len == valid_foc.len && in tcp_try_fastopen()
282 !memcmp(foc->val, valid_foc.val, foc->len)) { in tcp_try_fastopen()
294 foc->len = -1; in tcp_try_fastopen()
300 } else if (foc->len > 0) /* Client presents an invalid cookie */ in tcp_try_fastopen()
303 valid_foc.exp = foc->exp; in tcp_try_fastopen()
304 *foc = valid_foc; in tcp_try_fastopen()