summaryrefslogtreecommitdiff
path: root/ldpd/labelmapping.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2021-07-02 07:52:22 -0400
committerGitHub <noreply@github.com>2021-07-02 07:52:22 -0400
commit0a9fcd96d186bf2bbbb7a9148ced1eeadfbd5e03 (patch)
treecc8582fd1ca1b095f1a917b8c5077ccc392cb114 /ldpd/labelmapping.c
parent1e15822698cc62d0c30069688b5b2054acb21722 (diff)
parent8643c2e5f7b5541f136a3dfff5abe5b537159442 (diff)
Merge pull request #8970 from ton31337/fix/use_IPV6_MAX_BITLEN
*: Do not use 32/128 numbers for prefixlen
Diffstat (limited to 'ldpd/labelmapping.c')
-rw-r--r--ldpd/labelmapping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldpd/labelmapping.c b/ldpd/labelmapping.c
index cee9d527e8..13d3243124 100644
--- a/ldpd/labelmapping.c
+++ b/ldpd/labelmapping.c
@@ -724,9 +724,9 @@ tlv_decode_fec_elm(struct nbr *nbr, struct ldp_msg *msg, char *buf,
map->fec.prefix.prefixlen = buf[off];
off += sizeof(uint8_t);
if ((map->fec.prefix.af == AF_IPV4
- && map->fec.prefix.prefixlen > IPV4_MAX_PREFIXLEN)
+ && map->fec.prefix.prefixlen > IPV4_MAX_BITLEN)
|| (map->fec.prefix.af == AF_IPV6
- && map->fec.prefix.prefixlen > IPV6_MAX_PREFIXLEN)) {
+ && map->fec.prefix.prefixlen > IPV6_MAX_BITLEN)) {
session_shutdown(nbr, S_BAD_TLV_VAL, msg->id,
msg->type);
return (-1);