ccd000c638cc191b20fe6d61462ca79f44cfef6a
[openwrt/staging/lynxis.git] / package / network / services / igmpproxy / patches / 020-Silence-downstream-interface-igmp-messages.patch
1 --- a/src/igmp.c
2 +++ b/src/igmp.c
3 @@ -139,8 +139,14 @@
4 return;
5 }
6 else if(!isAdressValidForIf(checkVIF, src)) {
7 - my_log(LOG_WARNING, 0, "The source address %s for group %s, is not in any valid net for upstream VIF.",
8 - inetFmt(src, s1), inetFmt(dst, s2));
9 + struct IfDesc *downVIF = getIfByAddress(src);
10 + if (downVIF && downVIF->state & IF_STATE_DOWNSTREAM) {
11 + my_log(LOG_NOTICE, 0, "The source address %s for group %s is from downstream VIF. Ignoring.",
12 + inetFmt(src, s1), inetFmt(dst, s2));
13 + } else {
14 + my_log(LOG_WARNING, 0, "The source address %s for group %s, is not in any valid net for upstream VIF.",
15 + inetFmt(src, s1), inetFmt(dst, s2));
16 + }
17 return;
18 }
19