diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 17:05:11 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 22:50:39 +0200 |
commit | 12256b84a540434485b16433f83aa23928405560 (patch) | |
tree | e1ef59c861d62e6527ebe87f6527142f18cfef8d /pimd/pim_tlv.c | |
parent | babeld: Drop in_prefix() function (diff) | |
download | frr-12256b84a540434485b16433f83aa23928405560.tar.xz frr-12256b84a540434485b16433f83aa23928405560.zip |
*: Convert numeric 32 into IPV4_MAX_BITLEN for prefixlen
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'pimd/pim_tlv.c')
-rw-r--r-- | pimd/pim_tlv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_tlv.c b/pimd/pim_tlv.c index 62cecac41..8e6ff2f3a 100644 --- a/pimd/pim_tlv.c +++ b/pimd/pim_tlv.c @@ -626,7 +626,7 @@ int pim_parse_addr_source(struct prefix_sg *sg, uint8_t *flags, messages received with any other mask length. */ - if (mask_len != 32) { + if (mask_len != IPV4_MAX_BITLEN) { zlog_warn("%s: IPv4 bad source address mask: %d", __func__, mask_len); return -4; |