Lines Matching refs:foc
137 struct tcp_fastopen_cookie *foc)
144 foc->val[0] = cpu_to_le64(siphash(&iph->saddr,
148 foc->len = TCP_FASTOPEN_COOKIE_SIZE;
155 foc->val[0] = cpu_to_le64(siphash(&ip6h->saddr,
159 foc->len = TCP_FASTOPEN_COOKIE_SIZE;
172 struct tcp_fastopen_cookie *foc)
179 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[0], foc);
234 struct tcp_fastopen_cookie *foc = valid_foc;
243 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[i], foc);
244 if (tcp_fastopen_cookie_match(foc, orig)) {
248 foc = &search_foc;
359 /* Returns true if we should perform Fast Open on the SYN. The cookie (foc)
361 * cookie request (foc->len == 0).
365 struct tcp_fastopen_cookie *foc,
374 if (foc->len == 0) /* Client requests a cookie */
378 (syn_data || foc->len >= 0) &&
380 foc->len = -1;
387 if (foc->len == 0) {
390 } else if (foc->len > 0) {
391 ret = tcp_fastopen_cookie_gen_check(sk, req, skb, foc,
410 valid_foc.exp = foc->exp;
411 *foc = valid_foc;
415 foc->len = -1;
425 valid_foc.exp = foc->exp;
426 *foc = valid_foc;