diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2022-01-13 14:29:09 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2022-02-14 06:45:03 +0100 |
commit | 883052c6f9211eadc1cc4f6ffef8413cce56f3d7 (patch) | |
tree | 4d5c5bdd3d1c7ea1f184b1fb171d1900f271b650 /pimd/pim_iface.h | |
parent | Merge pull request #10533 from taspelund/ip_rule_nl_debugs (diff) | |
download | frr-883052c6f9211eadc1cc4f6ffef8413cce56f3d7.tar.xz frr-883052c6f9211eadc1cc4f6ffef8413cce56f3d7.zip |
pim6d: convert address comparison in I_am_DR macro
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_iface.h')
-rw-r--r-- | pimd/pim_iface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pimd/pim_iface.h b/pimd/pim_iface.h index 1ddf74361..f5f58a4bd 100644 --- a/pimd/pim_iface.h +++ b/pimd/pim_iface.h @@ -59,7 +59,8 @@ #define PIM_IF_DONT_PIM_CAN_DISABLE_JOIN_SUPPRESSION(options) \ ((options) &= ~PIM_IF_MASK_PIM_CAN_DISABLE_JOIN_SUPPRESSION) -#define PIM_I_am_DR(pim_ifp) (pim_ifp)->pim_dr_addr.s_addr == (pim_ifp)->primary_address.s_addr +#define PIM_I_am_DR(pim_ifp) \ + !pim_addr_cmp((pim_ifp)->pim_dr_addr, (pim_ifp)->primary_address) #define PIM_I_am_DualActive(pim_ifp) (pim_ifp)->activeactive == true /* Macros for interface flags */ |