prefix_matches
while (node && prefix_matches(node, key, bits)) {
while (node && node->cidr <= cidr && prefix_matches(node, key, bits)) {