Lines Matching defs:foc
122 struct tcp_fastopen_cookie *foc)
129 foc->val[0] = cpu_to_le64(siphash(&iph->saddr,
133 foc->len = TCP_FASTOPEN_COOKIE_SIZE;
140 foc->val[0] = cpu_to_le64(siphash(&ip6h->saddr,
144 foc->len = TCP_FASTOPEN_COOKIE_SIZE;
157 struct tcp_fastopen_cookie *foc)
164 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[0], foc);
219 struct tcp_fastopen_cookie *foc = valid_foc;
228 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[i], foc);
229 if (tcp_fastopen_cookie_match(foc, orig)) {
233 foc = &search_foc;
347 /* Returns true if we should perform Fast Open on the SYN. The cookie (foc)
349 * cookie request (foc->len == 0).
353 struct tcp_fastopen_cookie *foc,
362 if (foc->len == 0) /* Client requests a cookie */
366 (syn_data || foc->len >= 0) &&
368 foc->len = -1;
375 if (foc->len == 0) {
378 } else if (foc->len > 0) {
379 ret = tcp_fastopen_cookie_gen_check(sk, req, skb, foc,
398 valid_foc.exp = foc->exp;
399 *foc = valid_foc;
403 foc->len = -1;
414 valid_foc.exp = foc->exp;
415 *foc = valid_foc;