diff options
| author | lynne <lynne@voltanet.io> | 2020-08-12 19:15:24 -0400 |
|---|---|---|
| committer | lynne <lynne@voltanet.io> | 2020-09-04 09:24:47 -0400 |
| commit | 955357174f5eae2e28f0ce58a4dc55f530ce87c6 (patch) | |
| tree | 3478b02cf06fc3e1f3cdf08e1412a76e84fb97f3 /lib/mpls.h | |
| parent | ee7d41a4373a1598eb1accb98d3ff2f334fceb81 (diff) | |
ldpd: Fix issue when starting up LDP with no configuration.
LDP would mark all routes as learned on a non-ldp interface. Then
when LDP was configured the labels were not updated correctly. This
commit fixes issues 6841 and 6842.
Signed-off-by: Lynne Morrison <lynne@voltanet.io>
Diffstat (limited to 'lib/mpls.h')
| -rw-r--r-- | lib/mpls.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/mpls.h b/lib/mpls.h index 8922a36664..74bd7aae3e 100644 --- a/lib/mpls.h +++ b/lib/mpls.h @@ -72,8 +72,7 @@ extern "C" { /* Maximum # labels that can be pushed. */ #define MPLS_MAX_LABELS 16 -#define IS_MPLS_RESERVED_LABEL(label) \ - (label >= MPLS_LABEL_RESERVED_MIN && label <= MPLS_LABEL_RESERVED_MAX) +#define IS_MPLS_RESERVED_LABEL(label) (label <= MPLS_LABEL_RESERVED_MAX) #define IS_MPLS_UNRESERVED_LABEL(label) \ (label >= MPLS_LABEL_UNRESERVED_MIN \ |
