| Crates.io | proc_route_parser |
| lib.rs | proc_route_parser |
| version | 0.1.1 |
| created_at | 2025-01-27 09:03:08.892504+00 |
| updated_at | 2025-07-17 13:02:59.739365+00 |
| description | A simple parser for the /proc filesystem route file |
| homepage | |
| repository | https://github.com/OpenTritium/proc_route_parser |
| max_upload_size | |
| id | 1532236 |
| size | 20,222 |
Linux Only.
it will read /proc/net/route and /proc/net/ipv6_route then parse them.
fn main() -> Result<()> {
for entry_result in get_ipv6_route_table()? {
if let Ok(entry) = entry_result {
if entry.flags.contains(Ipv6RouteFlags::UP) {
println!("{:?}", entry);
}
}
}
Ok(())
}