MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / test_set_options

Function test_set_options

net_util/src/tap.rs:755–762  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

753
754 #[test]
755 fn test_set_options() {
756 let _tap_ip_guard = TAP_IP_LOCK.lock().unwrap();
757
758 // This line will fail to provide an initialized FD if the test is not run as root.
759 let tap = Tap::new(1).unwrap();
760 tap.set_vnet_hdr_size(16).unwrap();
761 tap.set_offload(0).unwrap();
762 }
763
764 #[test]
765 fn test_tap_enable() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
set_vnet_hdr_sizeMethod · 0.80
set_offloadMethod · 0.80

Tested by

no test coverage detected