Home
last modified time | relevance | path

Searched refs:ifindex_list (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/samples/bpf/
Dxdp_router_ipv4_user.c31 int *ifindex_list; variable
40 bpf_set_link_xdp_fd(ifindex_list[i], -1, flags); in int_exit()
52 bpf_set_link_xdp_fd(ifindex_list[i], -1, flags); in close_and_exit()
186 bpf_set_link_xdp_fd(ifindex_list[i], -1, flags); in read_route()
626 ifindex_list = (int *)malloc(total_ifindex * sizeof(int *)); in main()
628 ifindex_list[i] = if_nametoindex(ifname_list[i]); in main()
629 if (!ifindex_list[i]) { in main()
636 if (bpf_set_link_xdp_fd(ifindex_list[i], prog_fd[0], flags) < 0) { in main()
641 bpf_set_link_xdp_fd(ifindex_list[i], -1, flags); in main()
645 printf("Attached to %d\n", ifindex_list[i]); in main()