Lines Matching refs:opts
450 struct tcp_out_options *opts) in tcp_options_write() argument
452 u16 options = opts->options; /* mungable copy */ in tcp_options_write()
458 opts->hash_location = (__u8 *)ptr; in tcp_options_write()
462 if (unlikely(opts->mss)) { in tcp_options_write()
465 opts->mss); in tcp_options_write()
481 *ptr++ = htonl(opts->tsval); in tcp_options_write()
482 *ptr++ = htonl(opts->tsecr); in tcp_options_write()
496 opts->ws); in tcp_options_write()
499 if (unlikely(opts->num_sack_blocks)) { in tcp_options_write()
507 (TCPOLEN_SACK_BASE + (opts->num_sack_blocks * in tcp_options_write()
510 for (this_sack = 0; this_sack < opts->num_sack_blocks; in tcp_options_write()
520 struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; in tcp_options_write()
548 struct tcp_out_options *opts, in tcp_syn_options() argument
558 opts->options |= OPTION_MD5; in tcp_syn_options()
574 opts->mss = tcp_advertise_mss(sk); in tcp_syn_options()
578 opts->options |= OPTION_TS; in tcp_syn_options()
579 opts->tsval = tcp_skb_timestamp(skb) + tp->tsoffset; in tcp_syn_options()
580 opts->tsecr = tp->rx_opt.ts_recent; in tcp_syn_options()
584 opts->ws = tp->rx_opt.rcv_wscale; in tcp_syn_options()
585 opts->options |= OPTION_WSCALE; in tcp_syn_options()
589 opts->options |= OPTION_SACK_ADVERTISE; in tcp_syn_options()
590 if (unlikely(!(OPTION_TS & opts->options))) in tcp_syn_options()
601 opts->options |= OPTION_FAST_OPEN_COOKIE; in tcp_syn_options()
602 opts->fastopen_cookie = &fastopen->cookie; in tcp_syn_options()
616 struct tcp_out_options *opts, in tcp_synack_options() argument
625 opts->options |= OPTION_MD5; in tcp_synack_options()
638 opts->mss = mss; in tcp_synack_options()
642 opts->ws = ireq->rcv_wscale; in tcp_synack_options()
643 opts->options |= OPTION_WSCALE; in tcp_synack_options()
647 opts->options |= OPTION_TS; in tcp_synack_options()
648 opts->tsval = tcp_skb_timestamp(skb); in tcp_synack_options()
649 opts->tsecr = req->ts_recent; in tcp_synack_options()
653 opts->options |= OPTION_SACK_ADVERTISE; in tcp_synack_options()
664 opts->options |= OPTION_FAST_OPEN_COOKIE; in tcp_synack_options()
665 opts->fastopen_cookie = foc; in tcp_synack_options()
677 struct tcp_out_options *opts, in tcp_established_options() argument
684 opts->options = 0; in tcp_established_options()
689 opts->options |= OPTION_MD5; in tcp_established_options()
697 opts->options |= OPTION_TS; in tcp_established_options()
698 opts->tsval = skb ? tcp_skb_timestamp(skb) + tp->tsoffset : 0; in tcp_established_options()
699 opts->tsecr = tp->rx_opt.ts_recent; in tcp_established_options()
706 opts->num_sack_blocks = in tcp_established_options()
711 opts->num_sack_blocks * TCPOLEN_SACK_PERBLOCK; in tcp_established_options()
913 struct tcp_out_options opts; in tcp_transmit_skb() local
935 memset(&opts, 0, sizeof(opts)); in tcp_transmit_skb()
938 tcp_options_size = tcp_syn_options(sk, skb, &opts, &md5); in tcp_transmit_skb()
940 tcp_options_size = tcp_established_options(sk, skb, &opts, in tcp_transmit_skb()
996 tcp_options_write((__be32 *)(th + 1), tp, &opts); in tcp_transmit_skb()
1004 tp->af_specific->calc_md5_hash(opts.hash_location, in tcp_transmit_skb()
1428 struct tcp_out_options opts; in tcp_current_mss() local
1439 header_len = tcp_established_options(sk, NULL, &opts, &md5) + in tcp_current_mss()
2952 struct tcp_out_options opts; in tcp_make_synack() local
2975 memset(&opts, 0, sizeof(opts)); in tcp_make_synack()
2987 tcp_header_size = tcp_synack_options(sk, req, mss, skb, &opts, md5, in tcp_make_synack()
3012 tcp_options_write((__be32 *)(th + 1), tp, &opts); in tcp_make_synack()
3019 tcp_rsk(req)->af_specific->calc_md5_hash(opts.hash_location, in tcp_make_synack()