|
|
@ -32,6 +32,7 @@ fn main(){ |
|
|
|
println!("Default Interface"); |
|
|
|
println!("Default Interface"); |
|
|
|
println!("\tIndex: {}", default_interface.index); |
|
|
|
println!("\tIndex: {}", default_interface.index); |
|
|
|
println!("\tName: {}", default_interface.name); |
|
|
|
println!("\tName: {}", default_interface.name); |
|
|
|
|
|
|
|
println!("\tFriendlyName: {:?}", default_interface.friendly_name); |
|
|
|
println!("\tDescription: {:?}", default_interface.description); |
|
|
|
println!("\tDescription: {:?}", default_interface.description); |
|
|
|
println!("\tType: {}", default_interface.if_type.name()); |
|
|
|
println!("\tType: {}", default_interface.if_type.name()); |
|
|
|
if let Some(mac_addr) = default_interface.mac_addr { |
|
|
|
if let Some(mac_addr) = default_interface.mac_addr { |
|
|
|