]> git.proxmox.com Git - mirror_frr.git/commit
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>
Tue, 20 Aug 2019 08:31:43 +0000 (10:31 +0200)
commit66410157967d43d0e446d94f1acea495b6bd383a
tree70ac97483c7280ffae82c1f3153b559791e68222
parent8659448a014a26ffc0a4b4f1d00f230afeea64c8
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