Searched refs:tap_fd (Results 1 - 3 of 3) sorted by relevance
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | lwt_redirect.c | 160 static void send_and_capture_test_packets(const char *test_name, int tap_fd, argument 174 ret = wait_for_packet(tap_fd, filter, &timeo); 197 int tap_fd = -1; local 199 tap_fd = open_tuntap(target_dev, need_mac); 200 if (!ASSERT_GE(tap_fd, 0, "open_tuntap")) 220 return tap_fd; 223 if (tap_fd >= 0) 224 close(tap_fd); 231 int tap_fd = -1; local 234 tap_fd 245 int tap_fd = -1; local 262 int tap_fd = -1; local 293 int tap_fd = -1; local [all...] |
H A D | lwt_reroute.c | 154 int tap_fd = -1; local 156 tap_fd = open_tuntap(tun_dev, false); 157 if (!ASSERT_GE(tap_fd, 0, "open_tun")) 177 return tap_fd; 180 if (tap_fd >= 0) 181 close(tap_fd);
|
H A D | flow_dissector.c | 537 static void run_tests_skb_less(int tap_fd, struct bpf_map *keys) argument 561 err = tx_tap(tap_fd, &tests[i].pkt, sizeof(tests[i].pkt)); 578 static void test_skb_less_prog_attach(struct bpf_flow *skel, int tap_fd) argument 590 run_tests_skb_less(tap_fd, skel->maps.last_dissection); 596 static void test_skb_less_link_create(struct bpf_flow *skel, int tap_fd) argument 609 run_tests_skb_less(tap_fd, skel->maps.last_dissection); 619 int i, err, prog_fd, keys_fd = -1, tap_fd; local 669 tap_fd = create_tap("tap0"); 670 CHECK(tap_fd < 0, "create_tap", "tap_fd [all...] |
Completed in 123 milliseconds