summaryrefslogtreecommitdiff
path: root/pimd/pim_mlag.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-01-04 21:48:13 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2022-01-17 14:03:26 +0100
commit2a27f13b2197d07d11454b6cc8d0e5fc5b6ded87 (patch)
tree0e3e3f4f21943f7b960b11e474216dc3a3c36b77 /pimd/pim_mlag.c
parent98a81d2bffce9e5a80d0df35dfd0afff766dce0b (diff)
pimd: move, rename and deploy pim_addr_is_any()
Replaces comparison against INADDR_ANY, so we can do IPv6 too. (Renamed from "pim_is_addr_any" for "pim_addr_*" naming pattern, and type fixed to bool.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_mlag.c')
-rw-r--r--pimd/pim_mlag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_mlag.c b/pimd/pim_mlag.c
index a9fb8205b2..f4ddc1bf64 100644
--- a/pimd/pim_mlag.c
+++ b/pimd/pim_mlag.c
@@ -174,8 +174,8 @@ bool pim_mlag_up_df_role_update(struct pim_instance *pim,
/* If DF role changed on a (*,G) termination mroute update the
* associated DF role on the inherited (S,G) entries
*/
- if ((up->sg.src.s_addr == INADDR_ANY) &&
- PIM_UPSTREAM_FLAG_TEST_MLAG_VXLAN(up->flags))
+ if (pim_addr_is_any(up->sg.src) &&
+ PIM_UPSTREAM_FLAG_TEST_MLAG_VXLAN(up->flags))
pim_vxlan_inherit_mlag_flags(pim, up, true /* inherit */);
return true;