]> git.ipfire.org Git - location/libloc.git/commit - src/network.c
network: Fix deduplication not looking far enough
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 17 Feb 2024 21:18:22 +0000 (21:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 17 Feb 2024 21:18:22 +0000 (21:18 +0000)
commitd664b32b5e7f5376321c8eb4aa6223e7c0c6d40f
tree30668fa80822c8de2d1130ac652039c6027615dd
parentf6d762e0bb27bb50ac705ca242394f9a647de2e2
network: Fix deduplication not looking far enough

When deduplicating the tree, we kept comparing subnets to the largest
supernet only - which is incorrect.

Instead, we need to compare subnets to the next largest supernet which
is now implemented in this patch.

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