MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / tap_device_name_fits_ifnamsiz

Function tap_device_name_fits_ifnamsiz

crates/openshell-driver-vm/src/driver.rs:6722–6726  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6720
6721 #[test]
6722 fn tap_device_name_fits_ifnamsiz() {
6723 let name = tap_device_name("sandbox-abc-def-ghi");
6724 assert!(name.len() <= 15);
6725 assert!(name.starts_with("vmtap-"));
6726 }
6727
6728 #[test]
6729 fn mac_address_is_locally_administered() {

Callers

nothing calls this directly

Calls 1

tap_device_nameFunction · 0.85

Tested by

no test coverage detected