]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: fix IGMP querier election
authorNathan Bahr <nbahr@atcorp.com>
Mon, 24 Aug 2020 18:52:51 +0000 (13:52 -0500)
committerJafar Al-Gharaibeh <jafar@atcorp.com>
Wed, 26 Aug 2020 16:14:51 +0000 (11:14 -0500)
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>
pimd/pim_igmp.c

index 62954400f1857777227a434cf988cac8ebd7dd64..7b882ed98c69b094f70cb19b700fe8b2b229f110 100644 (file)
@@ -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);