Searched refs:tap_fd (Results 1 – 2 of 2) sorted by relevance
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/qemu/qemu-helper/ |
| H A D | tunctl.c | 41 int tap_fd, opt, delete = 0, brief = 0; in main() local 100 if((tap_fd = open(file, O_RDWR)) < 0){ in main() 110 if(ioctl(tap_fd, TUNSETIFF, (void *) &ifr) < 0){ in main() 116 if(ioctl(tap_fd, TUNSETPERSIST, 0) < 0){ in main() 129 if(ioctl(tap_fd, TUNSETOWNER, owner) < 0){ in main() 135 if(ioctl(tap_fd, TUNSETGROUP, group) < 0){ in main() 141 if(ioctl(tap_fd, TUNSETPERSIST, 1) < 0){ in main()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/ |
| H A D | flow_dissector.c | 478 static void run_tests_skb_less(int tap_fd, struct bpf_map *keys) in run_tests_skb_less() argument 502 err = tx_tap(tap_fd, &tests[i].pkt, sizeof(tests[i].pkt)); in run_tests_skb_less() 516 static void test_skb_less_prog_attach(struct bpf_flow *skel, int tap_fd) in test_skb_less_prog_attach() argument 528 run_tests_skb_less(tap_fd, skel->maps.last_dissection); in test_skb_less_prog_attach() 534 static void test_skb_less_link_create(struct bpf_flow *skel, int tap_fd) in test_skb_less_link_create() argument 547 run_tests_skb_less(tap_fd, skel->maps.last_dissection); in test_skb_less_link_create() 557 int i, err, prog_fd, keys_fd = -1, tap_fd; in test_flow_dissector() local 606 tap_fd = create_tap("tap0"); in test_flow_dissector() 607 CHECK(tap_fd < 0, "create_tap", "tap_fd %d errno %d\n", tap_fd, errno); in test_flow_dissector() 612 test_skb_less_prog_attach(skel, tap_fd); in test_flow_dissector() [all …]
|