Added useful comments to outline create_subnet function
This commit is contained in:
parent
e1a978cb1f
commit
7d61265f08
@ -62,6 +62,9 @@ impl 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.
|
||||
Ok(vec![Network::new(&IpAddr::V4(0, 0, 0, 0), &IpAddr::V4(0, 0, 0, 0))])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user