proc_route_parser

Crates.ioproc_route_parser
lib.rsproc_route_parser
version0.1.1
created_at2025-01-27 09:03:08.892504+00
updated_at2025-07-17 13:02:59.739365+00
descriptionA simple parser for the /proc filesystem route file
homepage
repositoryhttps://github.com/OpenTritium/proc_route_parser
max_upload_size
id1532236
size20,222
OpenTritium (OpenTritium)

documentation

README

PROCFS ROUTE PARSER

Supported Platform

Linux Only.

How dose it work

it will read /proc/net/route and /proc/net/ipv6_route then parse them.

How to use

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(())
}
Commit count: 10

cargo fmt