aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/routingtable.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* allowedips: rename from routingtableJason A. Donenfeld2017-11-101-41/+0
| | | | Makes it more clear that this _not_ a routing table replacement.
* routingtable: iterate progressivelyJason A. Donenfeld2017-10-091-5/+12
|
* routingtable: only use device's mutex, not a special rt oneJason A. Donenfeld2017-10-091-8/+6
|
* global: use _WG prefix for include guardsJason A. Donenfeld2017-10-031-3/+3
| | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
* routingtable: rewrite core functionsJason A. Donenfeld2017-04-211-6/+2
| | | | | | | | | | | | | | | | | | | | | When removing by peer, prev needs to be set to *nptr in order to traverse that part of the trie. The other remove by IP function can simply be removed, as it's not in use. The root freeing function can use pre-order traversal instead of post-order. The pre-order traversal code in general is now a nice iterator macro. The common bits function can use the fast fls instructions and the match function can be rewritten to simply compare common bits. While we're at it, let's add tons of new tests, randomized checking against a dumb implementation, and graphviz output. And in general, it's nice to clean things up.
* Update copyrightJason A. Donenfeld2017-01-101-1/+1
|
* global: move to consistent use of uN instead of uintN_t for kernel codeJason A. Donenfeld2016-12-111-7/+7
|
* headers: cleanup noticesJason A. Donenfeld2016-11-211-1/+1
|
* Rework headers and includesJason A. Donenfeld2016-09-291-1/+0
|
* routingtable: hyphen was uglyJason A. Donenfeld2016-08-221-0/+41