CVSROOT:        /cvs
Module name:    src
Changes by:     ren...@cvs.openbsd.org  2015/04/04 09:15:44

Modified files:
        usr.sbin/ldpd  : lde_lib.c ldpd.h 

Log message:
Show the full LIB in the "ldpctl show lib" command.

The LIB is a table where the router keeps all known MPLS labels. So,
we should loop over all the received label mappings from all neighbors
to show the full LIB.

The lde_nbr_is_nexthop() function was introduced to verify if a lib
entry is supposed to be installed in the fib (according to the fib entry's
nexthop and the addresses advertised by the lib entry's nexthop). This is
better than keeping track of lib<->fib entries with pointers and back
pointers because it keeps the lib/fib structures independent of each
other, which in turn makes the code less prone to bugs.

OK claudio@

Reply via email to