Lines Matching refs:ifindex
27 static int ifindex = -1;
35 if (ifindex > -1) {
36 if (bpf_xdp_query_id(ifindex, xdp_flags, &curr_prog_id)) {
41 bpf_xdp_detach(ifindex, xdp_flags, NULL);
73 printf(" -i <ifname|ifindex> Interface\n");
105 ifindex = if_nametoindex(optarg);
106 if (!ifindex)
107 ifindex = atoi(optarg);
142 if (!ifindex) {
182 if (bpf_xdp_attach(ifindex, prog_fd, xdp_flags, NULL) < 0) {