net-route icon indicating copy to clipboard operation
net-route copied to clipboard

Rust crate providing a cross platform interface for interacting with the routing table

Results 8 net-route issues
Sort by recently updated
recently updated
newest added

When setting `0.0.0.0/1`, almost traffic are routing to `tun`, and `bind_device_by_index_v4` is used to make the socket binding to the specified network interface such that the traffic of the socket...

I found that the routing table cannot be recovered once the program setting the routing table with `net-route` exits without being correct to call `delete` API, the only approach is...

The way of setting routes to make all traffic reach the specified tun interface is suggested to be: ````rust let if_name = CString::new("utun6")?; let tun_ifindex = unsafe{ libc::if_nametoindex(if_name.as_ptr()) }; let...

bug
MacOS

This is a very nice little package, but can we have a small feature? GetRoute(packet) given a packet, can you return the route information? ----------- Or to make it simple:...

enhancement

```` error[E0609]: no field `source` on type `Route` --> examples/list.rs:15:19 | 15 | route.source, | ^^^^^^ unknown field | = note: available fields are: `destination`, `prefix`, `gateway`, `ifindex` error[E0609]: no...

Since the `winapi` crate has not been updated for 4 years, it is necessary to switch it to the `windows-sys` crate, which is Microsoft's official crate and is actively maintained.

hey guys, now i have a problem. I have a rust application to fix my route’s default role when the default role is deleted, like this : It works well...