Home
last modified time | relevance | path

Searched refs:net_config (Results 1 – 3 of 3) sorted by relevance

/external/crosvm/tests/
Dplugin_net_config.c30 struct crosvm_net_config net_config; in main() local
38 ret = crosvm_net_get_config(crosvm, &net_config); in main()
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()
57 if (net_config.host_ip != htonl(expected_ip)) { in main()
59 inet_ntop(AF_INET, &net_config.host_ip, ip_addr, sizeof(ip_addr)); in main()
64 if (net_config.netmask != htonl(expected_netmask)) { in main()
66 inet_ntop(AF_INET, &net_config.netmask, netmask, sizeof(netmask)); in main()
71 if (memcmp(net_config.host_mac_address, in main()
[all …]
/external/webrtc/call/
Dcall_perf_tests.cc81 void TestCaptureNtpTime(const BuiltInNetworkBehaviorConfig& net_config,
368 const BuiltInNetworkBehaviorConfig& net_config, in TestCaptureNtpTime() argument
375 CaptureNtpTimeObserver(const BuiltInNetworkBehaviorConfig& net_config, in TestCaptureNtpTime() argument
380 net_config_(net_config), in TestCaptureNtpTime()
505 } test(net_config, threshold_ms, start_time_ms, run_time_ms); in TestCaptureNtpTime()
513 BuiltInNetworkBehaviorConfig net_config; in TEST_F() local
514 net_config.queue_delay_ms = 100; in TEST_F()
520 TestCaptureNtpTime(net_config, kThresholdMs, kStartTimeMs, kRunTimeMs); in TEST_F()
524 BuiltInNetworkBehaviorConfig net_config; in TEST_F() local
525 net_config.queue_delay_ms = 100; in TEST_F()
[all …]
/external/crosvm/crosvm_plugin/src/
Dlib.rs643 let mut net_config = crosvm_net_config { in get_net_config() localVariable
652 if mac_addr.len() != net_config.host_mac_address.len() { in get_net_config()
655 net_config.host_mac_address.copy_from_slice(mac_addr); in get_net_config()
657 Ok(net_config) in get_net_config()