]> git.puffer.fish Git - mirror/frr.git/commit
ldpd: fix broken label allocation
authorRenato Westphal <renato@opensourcerouting.org>
Tue, 12 Sep 2017 12:46:31 +0000 (09:46 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 12 Sep 2017 12:52:54 +0000 (09:52 -0300)
commit2a178cdd7c503a631285fea779199d5e8e3bfbe7
tree5d0448ab9c935f85d942db9bda27863f99cb5e34
parent953d97fc4aef0c7715e8d42d7d52ebc18d873ac6
ldpd: fix broken label allocation

Once ldpd allocated label 48 for a given FEC, all subsequent requests
for a new label would return the same value (48). The problem is that
we were left shifting an uint32_t value up to 64 times, losing important
information.

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