2017-05-18 96 views

回答

3

退房的pnet crate

extern crate pnet; 

use pnet::datalink; 

fn main() { 
    for iface in datalink::interfaces() { 
     println!("{:?}", iface.ips); 
    } 
}