mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 09:20:25 +00:00
Merge pull request #12978 from donaldsharp/multicast_address
pimd: IN_MULTICAST needs host order
This commit is contained in:
commit
3ae6704b20
@ -159,7 +159,7 @@ int pim_get_all_mcast_group(struct prefix *prefix)
|
||||
bool pim_addr_is_multicast(pim_addr addr)
|
||||
{
|
||||
#if PIM_IPV == 4
|
||||
if (IN_MULTICAST(addr.s_addr))
|
||||
if (IN_MULTICAST(ntohl(addr.s_addr)))
|
||||
return true;
|
||||
#else
|
||||
if (IN6_IS_ADDR_MULTICAST(&addr))
|
||||
|
Loading…
Reference in New Issue
Block a user