14 lines
263 B
Rust
14 lines
263 B
Rust
mod ip;
|
|
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 {}
|
|
} |