Home
last modified time | relevance | path

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

/external/crosvm/tests/
Dplugin_net_config.c44 if (net_config.tap_fd < 0) { in main()
45 fprintf(stderr, "fd %d is < 0\n", net_config.tap_fd); in main()
50 if (ioctl(net_config.tap_fd, TUNGETFEATURES, &features) < 0) { in main()
53 net_config.tap_fd, in main()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c478 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 …]
/external/crosvm/devices/src/virtio/vhost/user/device/net/sys/
Dunix.rs99 pub fn new_from_tap_fd(tap_fd: RawDescriptor) -> anyhow::Result<Self> { in new_from_tap_fd()
100 let tap_fd = validate_raw_descriptor(tap_fd).context("failed to validate tap fd")?; in new_from_tap_fd() localVariable
102 let tap = unsafe { T::from_raw_descriptor(tap_fd).context("failed to create tap device")? }; in new_from_tap_fd()
241 tap_fd: Vec<String>, field
279 let tap_fd = &arg[pos + 1..] in new_backend_from_tapfd_arg() localVariable
283 NetBackend::<Tap>::new_from_tap_fd(*tap_fd).context("failed to create NetBackend")?; in new_backend_from_tapfd_arg()
292 opts.device.len() + opts.tap_fd.len() + opts.vvu_device.len() + opts.vvu_tap_fd.len(); in start_device()
307 for arg in opts.tap_fd.iter() { in start_device()
/external/crosvm/devices/src/virtio/
Dnet.rs153 tap_fd: i32,
822 tap_fd: 12, in params_from_key_values()
835 tap_fd: 12, in params_from_key_values()
885 tap_fd: 3, in params_from_key_values()
898 tap_fd: 4, in params_from_key_values()
912 tap_fd: 4, in params_from_key_values()
/external/crosvm/crosvm_plugin/
Dcrosvm.h162 int tap_fd; member
/external/crosvm/src/crosvm/plugin/
Dmod.rs582 NetParametersMode::TapFd { tap_fd, mac } => { in run_config()
586 validate_raw_descriptor(tap_fd).context("failed to validate raw tap fd")?, in run_config()
/external/crosvm/src/crosvm/
Dcmdline.rs1960 pub tap_fd: Vec<RawDescriptor>, field
2790 for tap_fd in cmd.tap_fd { in try_from()
2796 mode: NetParametersMode::TapFd { tap_fd, mac: None }, in try_from()
/external/crosvm/src/crosvm/sys/unix/
Ddevice_helpers.rs772 NetParametersMode::TapFd { tap_fd, mac } => { in create_tap_for_net_device()
776 validate_raw_descriptor(*tap_fd) in create_tap_for_net_device()
/external/crosvm/crosvm_plugin/src/
Dlib.rs96 tap_fd: c_int, field
674 tap_fd: f.into_raw_fd(), in get_net_config()