I am trying to use pnet and get only interfaces that are up. The problem is that it returns all of my interfaces. I am running an up to date version of Debian. I have a number of virtual bridges on my pc for various reasons, but they're all down right now and they still return in the print statement.
I can't quite figure out why, but it seems like it may be related to parsing the flags, and something in libc. That's beyond my troubleshooting ability at the moment. I really don't know how to proceed. Not just with the code, but also in how to address this with the appropriate individuals or groups. Identifying the source of the problem (my pc, code, or the library, don't know) could be important.
let ifaces = pnet::datalink::linux::interfaces();
//println!("{:?}",a);
for inf in ifaces{
if inf.is_up(){
println!("{}",inf);
}
}