mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 09:20:25 +00:00
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:
commit
8230d54b6a
@ -305,6 +305,13 @@ static int igmp_recv_query(struct igmp_sock *igmp, int query_version,
|
|||||||
return -1;
|
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 */
|
/* Collecting IGMP Rx stats */
|
||||||
switch (query_version) {
|
switch (query_version) {
|
||||||
case 1:
|
case 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user