diff options
| author | Sarita Patra <saritap@vmware.com> | 2022-06-29 06:34:19 -0700 |
|---|---|---|
| committer | Sarita Patra <saritap@vmware.com> | 2022-06-29 06:34:19 -0700 |
| commit | 8e51ca271eebd9bec96dbe753e261e4953ae4b33 (patch) | |
| tree | e81ce4419ae75464fa767dfc6e83d4586e96a0c8 | |
| parent | c6c4b5e68ffe85e38a1e23a58c19e6462d517565 (diff) | |
pimd: Register stop message sent with mask 32
As per RFC 4601 section 4.9.4, For Register-Stops,
the Mask Len field contains full address length * 8
(e.g. 32 for IPv4 native encoding) (e.g. 128 for IPv6),
if the message is sent for a single group
The issue is seen after 10356, so fixed now.
Signed-off-by: Sarita Patra <saritap@vmware.com>
| -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 90bf799093..65975ce146 100644 --- a/pimd/pim_tlv.c +++ b/pimd/pim_tlv.c @@ -218,7 +218,7 @@ int pim_encode_addr_group(uint8_t *buf, afi_t afi, int bidir, int scope, *buf++ = PIM_MSG_ADDRESS_FAMILY; *buf++ = 0; *buf++ = flags; - *buf++ = sizeof(group) / 8; + *buf++ = sizeof(group) * 8; memcpy(buf, &group, sizeof(group)); buf += sizeof(group); |
