diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 16:42:03 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 16:44:09 +0200 |
commit | 936fbaef4794277a56185c535574df0f2771c117 (patch) | |
tree | 22e9f5b8ccaddd165187244bde90fdd61492630c /pimd/pim_tlv.c | |
parent | *: Replace IPV6_MAX_PREFIXLEN to IPV6_MAX_BITLEN (diff) | |
download | frr-936fbaef4794277a56185c535574df0f2771c117.tar.xz frr-936fbaef4794277a56185c535574df0f2771c117.zip |
*: Replace IPV4_MAX_PREFIXLEN to IPV4_MAX_BITLEN
Just drop IPV4_MAX_PREFIXLEN at all, no need keeping both.
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 8d6d3a416..62cecac41 100644 --- a/pimd/pim_tlv.c +++ b/pimd/pim_tlv.c @@ -481,7 +481,7 @@ int pim_parse_addr_ucast(struct prefix *p, const uint8_t *buf, int buf_size) p->family = AF_INET; /* notice: AF_INET != PIM_MSG_ADDRESS_FAMILY_IPV4 */ memcpy(&p->u.prefix4, addr, sizeof(struct in_addr)); - p->prefixlen = IPV4_MAX_PREFIXLEN; + p->prefixlen = IPV4_MAX_BITLEN; addr += sizeof(struct in_addr); break; |