020-Silence-downstream-interface-igmp-messages.patch 931 B

12345678910111213141516171819
  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. }