Problem in library, but I don't know how to address it . . . help?

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);
    }
}

Have you checked pnet's issue tracker? This might already be filed as a bug, otherwise you can open a ticket and the maintainers will get back to you.

Thanks Michael for the suggestion.

I had not searched their issues, but after searching I didn't see anything. I did post an issue.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.