johnyburd / net-route

Rust crate providing a cross platform interface for interacting with the routing table
https://docs.rs/net-route/
17 stars 12 forks source link

Make the routing table recoverable after the program exits with exceptions #24

Open xmh0511 opened 6 months ago

xmh0511 commented 6 months ago

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 to restart the system. net-route seems can record the original associated setting to disk such that the routing table can be recoverable after the next time the program run.