summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/labelmapping.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@cvs.openbsd.org>2016-06-18 01:25:54 +0000
committerRenato Westphal <renato@cvs.openbsd.org>2016-06-18 01:25:54 +0000
commite9b20c9afa8bba88e98619240292213e870b55b2 (patch)
treec28d44bd41c5be9877cf5a6673901818ccc50818 /usr.sbin/ldpd/labelmapping.c
parentdec78b720b31d789236356d18e5ee4e38aaf8609 (diff)
Fix small LIB<->LFIB synchronization issue.
ldpd operates only with the best routes of each IP prefix. In other words, the routes with the lowest priorities. When a route with a better priority is detected (possibly with a different nexthop), we should uninstall the labels from the "old" routes and try to install a new label for the new route (if there's one available in the LIB). In this specific case, ldpd was failing to uninstall the labels from the old routes because it wasn't keeping track of each route's priority in lde. With this missing bit of information, the parent process had no way to get the correct label to uninstall when processing a IMSG_KLABEL_DELETE message.
Diffstat (limited to 'usr.sbin/ldpd/labelmapping.c')
0 files changed, 0 insertions, 0 deletions