Home
last modified time | relevance | path

Searched refs:tap_fd (Results 1 – 8 of 8) 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()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c448 int i, err, prog_fd, keys_fd = -1, tap_fd; in test_flow_dissector() local
492 tap_fd = create_tap("tap0"); in test_flow_dissector()
493 CHECK(tap_fd < 0, "create_tap", "tap_fd %d errno %d\n", tap_fd, errno); in test_flow_dissector()
513 err = tx_tap(tap_fd, &tests[i].pkt, sizeof(tests[i].pkt)); in test_flow_dissector()
/external/crosvm/src/
Dcrosvm.rs222 pub tap_fd: Vec<RawFd>, field
298 tap_fd: Vec::new(), in default()
Dlinux.rs772 fn create_tap_net_device(cfg: &Config, tap_fd: RawDescriptor) -> DeviceResult { in create_tap_net_device()
776 validate_raw_descriptor(tap_fd).map_err(Error::ValidateRawDescriptor)?, in create_tap_net_device()
1454 for tap_fd in &cfg.tap_fd { in create_virtio_devices()
1455 devs.push(create_tap_net_device(cfg, *tap_fd)?); in create_virtio_devices()
Dmain.rs1472 cfg.tap_fd.push( in set_argument()
/external/crosvm/src/plugin/
Dmod.rs677 for tap_fd in cfg.tap_fd { in run_config()
680 Tap::from_raw_descriptor(validate_raw_descriptor(tap_fd).map_err(Error::ValidateTapFd)?) in run_config()
/external/crosvm/crosvm_plugin/
Dcrosvm.h162 int tap_fd; member
/external/crosvm/crosvm_plugin/src/
Dlib.rs68 tap_fd: c_int, field
644 tap_fd: f.into_raw_fd(), in get_net_config()