Lines Matching refs:foc
120 struct tcp_fastopen_cookie *foc)
127 foc->val[0] = cpu_to_le64(siphash(&iph->saddr,
131 foc->len = TCP_FASTOPEN_COOKIE_SIZE;
138 foc->val[0] = cpu_to_le64(siphash(&ip6h->saddr,
142 foc->len = TCP_FASTOPEN_COOKIE_SIZE;
155 struct tcp_fastopen_cookie *foc)
162 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[0], foc);
217 struct tcp_fastopen_cookie *foc = valid_foc;
226 __tcp_fastopen_cookie_gen_cipher(req, syn, &ctx->key[i], foc);
227 if (tcp_fastopen_cookie_match(foc, orig)) {
231 foc = &search_foc;
343 /* Returns true if we should perform Fast Open on the SYN. The cookie (foc)
345 * cookie request (foc->len == 0).
349 struct tcp_fastopen_cookie *foc,
358 if (foc->len == 0) /* Client requests a cookie */
362 (syn_data || foc->len >= 0) &&
364 foc->len = -1;
371 if (foc->len == 0) {
374 } else if (foc->len > 0) {
375 ret = tcp_fastopen_cookie_gen_check(sk, req, skb, foc,
394 valid_foc.exp = foc->exp;
395 *foc = valid_foc;
399 foc->len = -1;
409 valid_foc.exp = foc->exp;
410 *foc = valid_foc;