Skip to content

Commit

Permalink
pimd: IN_MULTICAST needs host order
Browse files Browse the repository at this point in the history
New correct behavior:

eva# conf
eva(config)# ip pim rp 192.168.1.224 224.0.0.0/24
No Path to RP address specified: 192.168.1.224
eva(config)# ip pim rp 224.1.2.3 224.0.0.0/24
% Bad RP address specified: 224.1.2.3
eva(config)#

Fixes: FRRouting#12970
Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Mar 12, 2023
1 parent 660d14e commit 8083e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pimd/pim_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8083e71

Please sign in to comment.