Lines Matching refs:ifindex
407 int key = 0, ifindex = -1;
422 ifindex = if_nametoindex(VXLAN_TUNL_DEV1);
423 if (!ASSERT_NEQ(ifindex, 0, "vxlan11 ifindex"))
425 tc_hook.ifindex = ifindex;
436 ifindex = if_nametoindex("veth1");
437 if (!ASSERT_NEQ(ifindex, 0, "veth1 ifindex"))
439 tc_hook.ifindex = ifindex;
450 ifindex = if_nametoindex(VXLAN_TUNL_DEV0);
451 if (!ASSERT_NEQ(ifindex, 0, "vxlan00 ifindex"))
453 tc_hook.ifindex = ifindex;
491 int key = 0, ifindex = -1;
506 ifindex = if_nametoindex(IP6VXLAN_TUNL_DEV1);
507 if (!ASSERT_NEQ(ifindex, 0, "ip6vxlan11 ifindex"))
509 tc_hook.ifindex = ifindex;
523 ifindex = if_nametoindex(IP6VXLAN_TUNL_DEV0);
524 if (!ASSERT_NEQ(ifindex, 0, "ip6vxlan00 ifindex"))
526 tc_hook.ifindex = ifindex;
562 int ifindex = -1;
576 ifindex = if_nametoindex(IPIP_TUNL_DEV1);
577 if (!ASSERT_NEQ(ifindex, 0, "ipip11 ifindex"))
579 tc_hook.ifindex = ifindex;
636 int ifindex;
647 ifindex = if_nametoindex("veth1");
648 if (!ASSERT_NEQ(ifindex, 0, "veth1 ifindex"))
652 tc_hook.ifindex = ifindex;
663 err = bpf_xdp_attach(ifindex, xdp_prog_fd, XDP_FLAGS_REPLACE, &opts);