Lines Matching refs:ifindex
24 static int ifindex = -1;
33 if (ifindex > -1) {
34 if (bpf_xdp_query_id(ifindex, xdp_flags, &curr_prog_id)) {
39 bpf_xdp_detach(ifindex, xdp_flags, NULL);
86 printf(" -i <ifname|ifindex> Interface\n");
181 ifindex = if_nametoindex(optarg);
182 if (!ifindex)
183 ifindex = atoi(optarg);
253 if (!ifindex) {
293 if (bpf_xdp_attach(ifindex, prog_fd, xdp_flags, NULL) < 0) {
307 bpf_xdp_detach(ifindex, xdp_flags, NULL);