Skip to content

Elixir/Rust NIF for an efficient routing table implementation, using a tree-bitmap

Notifications You must be signed in to change notification settings

hrefhref/routing_table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Routing Table

Efficient RIB for Elixir, implemented using a Rust NIF and treebitmap.

The tables covers both IPv4 and IPv6, and values are any erlang term, stored in ets.

table = RoutingTable.new()
RoutingTable.add(table, {10, 69, 0, 0}, 16, :vpn)
RoutingTable.add(table, {10, 69, 1, 0}, 24, :lan)
:vpn = RoutingTable.lookup(table, {10, 69, 2, 1})
:lan = RoutingTable.lookup(table, {10, 69, 1, 1})
nil = RoutingTable.lookup(table, {10, 68, 1, 1})

About

Elixir/Rust NIF for an efficient routing table implementation, using a tree-bitmap

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published