]> git.proxmox.com Git - mirror_frr.git/commit - tests/bgpd/test_bgp_table.py
bgpd: fix bgp_table range lookup
authorMarcel Röthke <marcel.roethke@haw-hamburg.de>
Fri, 16 Aug 2019 14:20:05 +0000 (16:20 +0200)
committerMarcel Röthke <marcel.roethke@haw-hamburg.de>
Fri, 16 Aug 2019 14:42:11 +0000 (16:42 +0200)
commit24b7eb485d13b454aa9d7b9a9690bd5b7d0425a1
treedeae487af4c613f0d0a1b5a3421ca32b648431a1
parent798df969aae46409a2768cdcaacd21c4f8ad8fb2
bgpd: fix bgp_table range lookup

In case the topmost node has a larger prefix length than the lookup
prefix it never matches even if it was still lower than maxlen

This also alters a test case to check for this bug.

Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
bgpd/bgp_table.c
tests/bgpd/test_bgp_table.c
tests/bgpd/test_bgp_table.py