Lines Matching defs:opt
2949 struct tcp_repair_window opt;
2954 if (len != sizeof(opt))
2957 if (copy_from_sockptr(&opt, optbuf, sizeof(opt)))
2960 if (opt.max_window < opt.snd_wnd)
2963 if (after(opt.snd_wl1, tp->rcv_nxt + opt.rcv_wnd))
2966 if (after(opt.rcv_wup, tp->rcv_nxt))
2969 tp->snd_wl1 = opt.snd_wl1;
2970 tp->snd_wnd = opt.snd_wnd;
2971 tp->max_window = opt.max_window;
2973 tp->rcv_wnd = opt.rcv_wnd;
2974 tp->rcv_wup = opt.rcv_wup;
2983 struct tcp_repair_opt opt;
2986 while (len >= sizeof(opt)) {
2987 if (copy_from_sockptr_offset(&opt, optbuf, offset, sizeof(opt)))
2990 offset += sizeof(opt);
2991 len -= sizeof(opt);
2993 switch (opt.opt_code) {
2995 tp->rx_opt.mss_clamp = opt.opt_val;
3000 u16 snd_wscale = opt.opt_val & 0xFFFF;
3001 u16 rcv_wscale = opt.opt_val >> 16;
3012 if (opt.opt_val != 0)
3018 if (opt.opt_val != 0)
3928 struct tcp_repair_window opt;
3933 if (len != sizeof(opt))
3939 opt.snd_wl1 = tp->snd_wl1;
3940 opt.snd_wnd = tp->snd_wnd;
3941 opt.max_window = tp->max_window;
3942 opt.rcv_wnd = tp->rcv_wnd;
3943 opt.rcv_wup = tp->rcv_wup;
3945 if (copy_to_user(optval, &opt, len))