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()
266 struct tcp_fastopen_cookie *foc, in tcp_try_fastopen() argument
272 if (foc->len == 0) /* Client requests a cookie */ in tcp_try_fastopen()
276 (syn_data || foc->len >= 0) && in tcp_try_fastopen()
278 foc->len = -1; in tcp_try_fastopen()
285 if (foc->len >= 0 && /* Client presents or requests a cookie */ in tcp_try_fastopen()
287 foc->len == TCP_FASTOPEN_COOKIE_SIZE && in tcp_try_fastopen()
288 foc->len == valid_foc.len && in tcp_try_fastopen()
289 !memcmp(foc->val, valid_foc.val, foc->len)) { in tcp_try_fastopen()
300 foc->len = -1; in tcp_try_fastopen()
306 } else if (foc->len > 0) /* Client presents an invalid cookie */ in tcp_try_fastopen()
309 valid_foc.exp = foc->exp; in tcp_try_fastopen()
310 *foc = valid_foc; in tcp_try_fastopen()