c-bata / xpcap

Cross-platform Packet Capture which supports Linux and macOS(BSD) in 1000 LOC without depending on libpcap.
https://c-bata.medium.com/how-to-write-cross-platform-packet-capture-using-raw-socket-and-bpf-bab3b614bc03
25 stars 0 forks source link

list network interfaces #5

Open c-bata opened 5 years ago

c-bata commented 5 years ago

refs

c-bata commented 5 years ago

https://github.com/maidsafe/get_if_addrs/blob/master/src/ifaddrs_posix.rs#L14