diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-01-13 14:37:42 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-01-17 14:11:08 +0100 |
| commit | 3ca68c9cf3fa08979d73fb34cadc83c18d1d2106 (patch) | |
| tree | 846c26f25e2987725ed6ebc985833f3abf08a4f3 /pimd/pim_msdp.c | |
| parent | 6d7bf748b6185f74532ed1273814036f556ab7ad (diff) | |
pimd: remove PIM_INADDR_IS[NOT]_ANY macros
These really don't serve much of a purpose, especially with how
inconsistently they're used.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_msdp.c')
| -rw-r--r-- | pimd/pim_msdp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_msdp.c b/pimd/pim_msdp.c index 8c4d2293c5..f35dc818a5 100644 --- a/pimd/pim_msdp.c +++ b/pimd/pim_msdp.c @@ -315,7 +315,7 @@ static void pim_msdp_sa_peer_ip_set(struct pim_msdp_sa *sa, } /* any time the peer ip changes also update the rp address */ - if (PIM_INADDR_ISNOT_ANY(sa->peer)) { + if (sa->peer.s_addr != INADDR_ANY) { old_mp = pim_msdp_peer_find(sa->pim, sa->peer); if (old_mp && old_mp->sa_cnt) { --old_mp->sa_cnt; |
