Lines Matching refs:opt

2858 	struct tcp_repair_window opt;  in tcp_repair_set_window()  local
2863 if (len != sizeof(opt)) in tcp_repair_set_window()
2866 if (copy_from_sockptr(&opt, optbuf, sizeof(opt))) in tcp_repair_set_window()
2869 if (opt.max_window < opt.snd_wnd) in tcp_repair_set_window()
2872 if (after(opt.snd_wl1, tp->rcv_nxt + opt.rcv_wnd)) in tcp_repair_set_window()
2875 if (after(opt.rcv_wup, tp->rcv_nxt)) in tcp_repair_set_window()
2878 tp->snd_wl1 = opt.snd_wl1; in tcp_repair_set_window()
2879 tp->snd_wnd = opt.snd_wnd; in tcp_repair_set_window()
2880 tp->max_window = opt.max_window; in tcp_repair_set_window()
2882 tp->rcv_wnd = opt.rcv_wnd; in tcp_repair_set_window()
2883 tp->rcv_wup = opt.rcv_wup; in tcp_repair_set_window()
2892 struct tcp_repair_opt opt; in tcp_repair_options_est() local
2895 while (len >= sizeof(opt)) { in tcp_repair_options_est()
2896 if (copy_from_sockptr_offset(&opt, optbuf, offset, sizeof(opt))) in tcp_repair_options_est()
2899 offset += sizeof(opt); in tcp_repair_options_est()
2900 len -= sizeof(opt); in tcp_repair_options_est()
2902 switch (opt.opt_code) { in tcp_repair_options_est()
2904 tp->rx_opt.mss_clamp = opt.opt_val; in tcp_repair_options_est()
2909 u16 snd_wscale = opt.opt_val & 0xFFFF; in tcp_repair_options_est()
2910 u16 rcv_wscale = opt.opt_val >> 16; in tcp_repair_options_est()
2921 if (opt.opt_val != 0) in tcp_repair_options_est()
2927 if (opt.opt_val != 0) in tcp_repair_options_est()
3821 struct tcp_repair_window opt; in do_tcp_getsockopt() local
3826 if (len != sizeof(opt)) in do_tcp_getsockopt()
3832 opt.snd_wl1 = tp->snd_wl1; in do_tcp_getsockopt()
3833 opt.snd_wnd = tp->snd_wnd; in do_tcp_getsockopt()
3834 opt.max_window = tp->max_window; in do_tcp_getsockopt()
3835 opt.rcv_wnd = tp->rcv_wnd; in do_tcp_getsockopt()
3836 opt.rcv_wup = tp->rcv_wup; in do_tcp_getsockopt()
3838 if (copy_to_user(optval, &opt, len)) in do_tcp_getsockopt()