Added useful comments to outline create_subnet function

This commit is contained in:
Luke Else 2023-04-18 20:40:53 +01:00
parent e1a978cb1f
commit 7d61265f08

View File

@ -62,6 +62,9 @@ impl Network {
//Get first address of each network //Get first address of each network
//Need to get the most significant octet
//Get number of bits available for host in specific octet
//Determine Spacing
//Use Class constructor to generate each network. //Use Class constructor to generate each network.
Ok(vec![Network::new(&IpAddr::V4(0, 0, 0, 0), &IpAddr::V4(0, 0, 0, 0))]) Ok(vec![Network::new(&IpAddr::V4(0, 0, 0, 0), &IpAddr::V4(0, 0, 0, 0))])
} }