summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Bahr <nbahr@atcorp.com>2020-08-24 13:52:51 -0500
committerJafar Al-Gharaibeh <jafar@atcorp.com>2020-08-26 10:47:04 -0500
commitbcdb04e68b2ca50f895a12cf513af5933814506c (patch)
tree4385d4e3e8e0aa93ca2485321ac9c09e5e443664
parentd05d3f7a6fac8351a39026bf750cbf2ce8b7ad51 (diff)
pimd: fix IGMP querier election
Match by exact address rather than by prefix match to determine if we generated the IGMPP query. Othwerwise we will be ignoring IGMP queries coming from other hosts on the same subnet. Signed-off-by: Nathan Bahr <nbahr@atcorp.com> Reviewed-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
-rw-r--r--pimd/pim_igmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_igmp.c b/pimd/pim_igmp.c
index 97deac8b85..20f339d43f 100644
--- a/pimd/pim_igmp.c
+++ b/pimd/pim_igmp.c
@@ -310,7 +310,7 @@ static int igmp_recv_query(struct igmp_sock *igmp, int query_version,
return 0;
}
- if (if_lookup_address(&from, AF_INET, ifp->vrf_id)) {
+ if (if_lookup_exact_address(&from, AF_INET, ifp->vrf_id)) {
if (PIM_DEBUG_IGMP_PACKETS)
zlog_debug("Recv IGMP query on interface: %s from ourself %s",
ifp->name, from_str);