mjschultz / py-radix

Python radix tree implementation for IPv4 and IPv6 prefix matching.
Other
119 stars 37 forks source link

Fix issue 26 #27

Closed sorc1 closed 8 years ago

sorc1 commented 8 years ago

radix_search_covered(): don't suppress COMP_NODE_PREFIX call for wider prefixes

The root node of a subtree to walk may have a prefix wider than requested. So, we have to call COMP_NODE_PREFIX() for each nearest prefix of the subtree in the case.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.2%) to 90.33% when pulling a7fe55577a1f831e0265004064618aefbfad3dec on sorc1:covered into c89eb750664e28d571a90c09d481802f68487dc8 on mjschultz:master.