Lines Matching refs:opt_nr
168 unsigned int opt_nr = 0; in __test_sock_restore() local
189 opts[opt_nr].opt_code = TCPOPT_SACK_PERMITTED; in __test_sock_restore()
190 opts[opt_nr].opt_val = 0; in __test_sock_restore()
191 opt_nr++; in __test_sock_restore()
194 opts[opt_nr].opt_code = TCPOPT_WINDOW; in __test_sock_restore()
195 opts[opt_nr].opt_val = state->info.tcpi_snd_wscale + in __test_sock_restore()
197 opt_nr++; in __test_sock_restore()
200 opts[opt_nr].opt_code = TCPOPT_TIMESTAMP; in __test_sock_restore()
201 opts[opt_nr].opt_val = 0; in __test_sock_restore()
202 opt_nr++; in __test_sock_restore()
204 opts[opt_nr].opt_code = TCPOPT_MAXSEG; in __test_sock_restore()
205 opts[opt_nr].opt_val = state->mss; in __test_sock_restore()
206 opt_nr++; in __test_sock_restore()
208 if (setsockopt(sk, SOL_TCP, TCP_REPAIR_OPTIONS, opts, opt_nr * sizeof(opts[0]))) in __test_sock_restore()
213 &state->timestamp, opt_nr * sizeof(opts[0]))) in __test_sock_restore()