Lines Matching refs:foc
520 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; in tcp_options_write() local
524 if (foc->exp) { in tcp_options_write()
525 len = TCPOLEN_EXP_FASTOPEN_BASE + foc->len; in tcp_options_write()
530 len = TCPOLEN_FASTOPEN_BASE + foc->len; in tcp_options_write()
535 memcpy(p, foc->val, foc->len); in tcp_options_write()
537 p[foc->len] = TCPOPT_NOP; in tcp_options_write()
538 p[foc->len + 1] = TCPOPT_NOP; in tcp_options_write()
618 struct tcp_fastopen_cookie *foc) in tcp_synack_options() argument
657 if (foc != NULL && foc->len >= 0) { in tcp_synack_options()
658 u32 need = foc->len; in tcp_synack_options()
660 need += foc->exp ? TCPOLEN_EXP_FASTOPEN_BASE : in tcp_synack_options()
665 opts->fastopen_cookie = foc; in tcp_synack_options()
2950 struct tcp_fastopen_cookie *foc) in tcp_make_synack() argument
2988 foc) + sizeof(*th); in tcp_make_synack()