diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 18:05:11 +0300 | 
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 23:50:39 +0300 | 
| commit | 12256b84a540434485b16433f83aa23928405560 (patch) | |
| tree | e1ef59c861d62e6527ebe87f6527142f18cfef8d /pimd/pim_tlv.c | |
| parent | 45833edae0fe12c87cdb90f939c07d282959e1b9 (diff) | |
*: 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 62cecac41e..8e6ff2f3a7 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;  | 
