Lines Matching refs:foc
115 struct tcp_fastopen_cookie *foc) in __tcp_fastopen_cookie_gen() argument
127 crypto_cipher_encrypt_one(ctx->tfm, foc->val, path); in __tcp_fastopen_cookie_gen()
128 foc->len = TCP_FASTOPEN_COOKIE_SIZE; in __tcp_fastopen_cookie_gen()
144 struct tcp_fastopen_cookie *foc) in tcp_fastopen_cookie_gen() argument
150 return __tcp_fastopen_cookie_gen(sk, path, foc); in tcp_fastopen_cookie_gen()
164 return __tcp_fastopen_cookie_gen(sk, buf, foc); in tcp_fastopen_cookie_gen()
327 struct tcp_fastopen_cookie *foc, in tcp_try_fastopen() argument
335 if (foc->len == 0) /* Client requests a cookie */ in tcp_try_fastopen()
339 (syn_data || foc->len >= 0) && in tcp_try_fastopen()
341 foc->len = -1; in tcp_try_fastopen()
349 if (foc->len >= 0 && /* Client presents or requests a cookie */ in tcp_try_fastopen()
351 foc->len == TCP_FASTOPEN_COOKIE_SIZE && in tcp_try_fastopen()
352 foc->len == valid_foc.len && in tcp_try_fastopen()
353 !memcmp(foc->val, valid_foc.val, foc->len)) { in tcp_try_fastopen()
365 foc->len = -1; in tcp_try_fastopen()
371 } else if (foc->len > 0) /* Client presents an invalid cookie */ in tcp_try_fastopen()
374 valid_foc.exp = foc->exp; in tcp_try_fastopen()
375 *foc = valid_foc; in tcp_try_fastopen()