2023-02-11 17:41:33 +00:00
|
|
|
pub mod ip;
|
2023-02-11 16:15:28 +00:00
|
|
|
use ip::IpAddr;
|
|
|
|
|
|
|
|
#[allow(unused)]
|
|
|
|
pub struct Network {
|
|
|
|
network_address: IpAddr,
|
|
|
|
broadcast_addr: IpAddr,
|
|
|
|
subnet_mask: Option<IpAddr>
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Network {
|
|
|
|
// pub fn generate_subnets(self) -> Vec<Network> {}
|
|
|
|
// fn get_net_id(self) -> u8 {}
|
|
|
|
}
|