]> git.ipfire.org Git - location/libloc.git/commit
network-list: Rewrite summarize algorithm
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Mar 2022 15:06:17 +0000 (15:06 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Mar 2022 15:06:17 +0000 (15:06 +0000)
commitd701dcfd0b1025d49d33bd630a67b1bdd47ab58e
tree9afb737c17d98bf6f06af5bf60d35c602b5843d8
parent7f834833a6c74a73a98d613a022ece9781d6dbc0
network-list: Rewrite summarize algorithm

The former algorithm did a lot of trial and error which is slow and
probably returned wrong results.

This one determines the correct prefix size quickly.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libloc/private.h
src/network-list.c