Searched refs:tap_fd (Results 1 – 8 of 8) sorted by relevance
/external/crosvm/tests/ |
D | plugin_net_config.c | 44 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/ |
D | flow_dissector.c | 448 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/ |
D | crosvm.rs | 222 pub tap_fd: Vec<RawFd>, field 298 tap_fd: Vec::new(), in default()
|
D | linux.rs | 772 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()
|
D | main.rs | 1472 cfg.tap_fd.push( in set_argument()
|
/external/crosvm/src/plugin/ |
D | mod.rs | 677 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/ |
D | crosvm.h | 162 int tap_fd; member
|
/external/crosvm/crosvm_plugin/src/ |
D | lib.rs | 68 tap_fd: c_int, field 644 tap_fd: f.into_raw_fd(), in get_net_config()
|