Lines Matching refs:prog_id
91 static void parse_options(int argc, char *argv[], unsigned int *ifindex, __u32 *prog_id, in parse_options() argument
115 *prog_id = 0; in parse_options()
138 *prog_id = parse_arg_ul(argv[0], optarg, UINT32_MAX); in parse_options()
139 if (*prog_id == 0) in parse_options()
182 if (*ifindex != 0 && *prog_id != 0) in parse_options()
184 if (*ifindex == 0 && *prog_id == 0) in parse_options()
272 static int syncookie_open_bpf_maps(__u32 prog_id, int *values_map_fd, int *ports_map_fd) in syncookie_open_bpf_maps() argument
284 prog_fd = bpf_prog_get_fd_by_id(prog_id); in syncookie_open_bpf_maps()
366 __u32 prog_id; in main() local
372 parse_options(argc, argv, &ifindex, &prog_id, &tcpipopts, &ports, in main()
375 if (prog_id == 0) { in main()
377 err = bpf_xdp_query_id(ifindex, 0, &prog_id); in main()
384 if (prog_id == 0) { in main()
388 prog_id = attached_prog_id; in main()
392 err = syncookie_open_bpf_maps(prog_id, &values_map_fd, &ports_map_fd); in main()