]> git.puffer.fish Git - matthieu/frr.git/commit
ldpd: schedule the sending of label messages when necessary
authorRenato Westphal <renato@opensourcerouting.org>
Sat, 22 Apr 2017 01:10:42 +0000 (22:10 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 26 Apr 2017 13:36:33 +0000 (10:36 -0300)
commit7c2abbd734a8dab416e378be7b200797b2331e47
treea30b027de4f3c5be5f63bd53690733a63c479594
parent1f2ff5b5cd56a237b38fa7e46784594280c12075
ldpd: schedule the sending of label messages when necessary

Once we send a Label Withdraw, we can't send a Label Mapping for the
same FEC until we receive a Label Release from the peer. This is due to
some limitations in the LDP algorithms described in Appendix A. ("LDP
Label Distribution Procedures") of RFC 5036.

To workaround this issue, make it possible to schedule the sending of
a Label Mapping as soon as a Label Release is received for the same FEC.

The easiest way to test this patch is by typing the "label local advertise
explicit-null" command. ldpd will withdraw all null labels using a
Wildcard FEC and then send new Label Mappings as soon the corresponding
Label Releases are received.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/lde.c
ldpd/lde.h
ldpd/lde_lib.c