Skip to content

Releases: KRunchPL/best-route-finder

v0.1.0

31 Oct 11:12
Compare
Choose a tag to compare

Rust library and Python bindings.

Functions

  • Inserting a new route by a CIDR string (e.g. "192.168.4.0/24").
  • Inserting a new route by integers: ip address and prefix length (e.g. 0xC0_A8_04_00, 24).
  • Searching for a next-hop interface by IP string (e.g. "192.168.4.10").
  • Searching for a next-hop interface by IP as integer (e.g. 0xC0_A8_04_0A).

Known limitations

  • Supports only IPv4 only.
  • A route consist just from a network address, prefix length and next-hop interface (no metric or gateway ip for example).
  • Two routes with the same network address and prefix length are not permitted. Adding a second one will overwrite the next-hop interface.