Lines Matching refs:opt
117 static int parse_test_option(struct bpf_test_option *opt, const __u8 *start) in parse_test_option() argument
119 opt->flags = *start++; in parse_test_option()
121 if (TEST_OPTION_FLAGS(opt->flags, OPTION_MAX_DELACK_MS)) in parse_test_option()
122 opt->max_delack_ms = *start++; in parse_test_option()
124 if (TEST_OPTION_FLAGS(opt->flags, OPTION_RAND)) in parse_test_option()
125 opt->rand = *start++; in parse_test_option()
191 struct bpf_test_option opt; in write_synack_opt() local
199 opt = passive_synack_out; in write_synack_opt()
201 SET_OPTION_FLAGS(opt.flags, OPTION_RESEND); in write_synack_opt()
203 return store_option(skops, &opt); in write_synack_opt()
234 struct bpf_test_option *opt; in fin_opt_len() local
247 opt = &active_fin_out; in fin_opt_len()
249 opt = &passive_fin_out; in fin_opt_len()
251 optlen = option_total_len(opt->flags); in fin_opt_len()
263 struct bpf_test_option *opt; in write_fin_opt() local
274 opt = &active_fin_out; in write_fin_opt()
276 opt = &passive_fin_out; in write_fin_opt()
278 if (!opt->flags) in write_fin_opt()
281 return store_option(skops, opt); in write_fin_opt()