]> git.ipfire.org Git - people/ms/libloc.git/commit
tree: Be smarter when removing networks from the stack
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 6 Mar 2024 22:45:28 +0000 (22:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 6 Mar 2024 22:45:28 +0000 (22:45 +0000)
commite5e53b597033d1884f69a3eebac473b4b4695828
tree13b47168c9fd2fd6d59823d2455716a297cb8aa4
parent9153d1e7f72f99010035d54f5f2e80647cd5194c
tree: Be smarter when removing networks from the stack

Since we are working through a sorted tree, we will either only see
subnets of a network or we won't. Once we see a network that isn't a
subnet, we remove the supernet until nothing is left on the stack.

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