database: Walk down into the tree as much as possible first
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Jan 2018 23:29:52 +0000 (23:29 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Jan 2018 23:29:52 +0000 (23:29 +0000)
commit9086d2b1db0eb01996dda2a4b50a058cb190e1c9
treebd9cf6fa5fc8046637dd7b6a720386d4c3bbf4ac
parent0d33b6719261b5b4dc14aa188d086a9aaafe45f2
database: Walk down into the tree as much as possible first

Instead of stopping when we find the largest network that
matches, we will have to go as deep as we can and then
check all networks on the way from the bottom up.

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