Lines Matching defs:ifindex
19 static unsigned int ifindex;
34 .ifindex = ifindex,
49 err = bpf_xdp_attach(ifindex, -1, 0, NULL);
57 err = bpf_xdp_attach(ifindex, -1, XDP_FLAGS_REPLACE, &opts);
91 static void parse_options(int argc, char *argv[], unsigned int *ifindex, __u32 *prog_id,
114 *ifindex = 0;
133 *ifindex = if_nametoindex(optarg);
134 if (*ifindex == 0)
182 if (*ifindex != 0 && *prog_id != 0)
184 if (*ifindex == 0 && *prog_id == 0)
188 static int syncookie_attach(const char *argv0, unsigned int ifindex, bool tc)
232 .ifindex = ifindex,
253 err = bpf_xdp_attach(ifindex, prog_fd,
372 parse_options(argc, argv, &ifindex, &prog_id, &tcpipopts, &ports,
377 err = bpf_xdp_query_id(ifindex, 0, &prog_id);
385 err = syncookie_attach(argv[0], ifindex, tc);