summaryrefslogtreecommitdiff
path: root/zebra/label_manager.c
diff options
context:
space:
mode:
authorMitesh Kanjariya <mitesh@cumulusnetworks.com>2018-02-21 00:36:58 -0800
committerGitHub <noreply@github.com>2018-02-21 00:36:58 -0800
commitf487dcaf74c9bd7a716a749d15281d5b92d363d4 (patch)
tree5362b8a4081b3b8a13038fa520c8d66a95c0192e /zebra/label_manager.c
parent7fdaec88941d66d831363d32084cc88c5b98ac6c (diff)
parent4298f5e937a1fa689047697395f8b741fb9b3d15 (diff)
Merge branch 'master' into evpn-bug-fixes
Diffstat (limited to 'zebra/label_manager.c')
-rw-r--r--zebra/label_manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/label_manager.c b/zebra/label_manager.c
index ace13eda71..5bf0fce094 100644
--- a/zebra/label_manager.c
+++ b/zebra/label_manager.c
@@ -283,13 +283,13 @@ struct label_manager_chunk *assign_label_chunk(u_char proto, u_short instance,
return NULL;
if (list_isempty(lbl_mgr.lc_list))
- lmc->start = MPLS_MIN_UNRESERVED_LABEL;
+ lmc->start = MPLS_LABEL_UNRESERVED_MIN;
else
lmc->start = ((struct label_manager_chunk *)listgetdata(
listtail(lbl_mgr.lc_list)))
->end
+ 1;
- if (lmc->start > MPLS_MAX_UNRESERVED_LABEL - size + 1) {
+ if (lmc->start > MPLS_LABEL_UNRESERVED_MAX - size + 1) {
zlog_err("Reached max labels. Start: %u, size: %u", lmc->start,
size);
XFREE(MTYPE_LM_CHUNK, lmc);