Merge pull request #4610 from donaldsharp/pim_igmp_connected_source

[master]pimd: Dissallow query to be received from a non-connected source
This commit is contained in:
Jafar Al-Gharaibeh 2019-06-27 21:49:59 +03:00 committed by GitHub
commit 8230d54b6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -305,6 +305,13 @@ static int igmp_recv_query(struct igmp_sock *igmp, int query_version,
return -1;
}
if (!pim_if_connected_to_source(ifp, from)) {
if (PIM_DEBUG_IGMP_PACKETS)
zlog_debug("Recv IGMP query on interface: %s from a non-connected source: %s",
ifp->name, from_str);
return 0;
}
/* Collecting IGMP Rx stats */
switch (query_version) {
case 1: