Lines Matching refs:foc
518 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; in tcp_options_write() local
522 if (foc->exp) { in tcp_options_write()
523 len = TCPOLEN_EXP_FASTOPEN_BASE + foc->len; in tcp_options_write()
528 len = TCPOLEN_FASTOPEN_BASE + foc->len; in tcp_options_write()
533 memcpy(p, foc->val, foc->len); in tcp_options_write()
535 p[foc->len] = TCPOPT_NOP; in tcp_options_write()
536 p[foc->len + 1] = TCPOPT_NOP; in tcp_options_write()
615 struct tcp_fastopen_cookie *foc) in tcp_synack_options() argument
654 if (foc != NULL && foc->len >= 0) { in tcp_synack_options()
655 u32 need = foc->len; in tcp_synack_options()
657 need += foc->exp ? TCPOLEN_EXP_FASTOPEN_BASE : in tcp_synack_options()
662 opts->fastopen_cookie = foc; in tcp_synack_options()
2946 struct tcp_fastopen_cookie *foc, in tcp_make_synack() argument
2996 tcp_header_size = tcp_synack_options(req, mss, skb, &opts, md5, foc) + in tcp_make_synack()