002-Change-default-interface-state-to-disabled-wrt-29458.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 85e240727305b156097ee7aa0f0c4473a136291f Mon Sep 17 00:00:00 2001
  2. From: Constantin Baranov <const@mimas.ru>
  3. Date: Tue, 23 Feb 2010 21:08:02 +0400
  4. Subject: [PATCH] Change default interface state to disabled (wrt #2945877)
  5. ---
  6. src/ifvc.c | 2 +-
  7. src/igmpproxy.c | 6 ++++--
  8. 2 files changed, 5 insertions(+), 3 deletions(-)
  9. diff --git a/src/ifvc.c b/src/ifvc.c
  10. index 545b3b4..9d7ee97 100644
  11. --- a/src/ifvc.c
  12. +++ b/src/ifvc.c
  13. @@ -139,7 +139,7 @@ void buildIfVc() {
  14. IfDescEp->allowednets->subnet_addr = subnet;
  15. // Set the default params for the IF...
  16. - IfDescEp->state = IF_STATE_DOWNSTREAM;
  17. + IfDescEp->state = IF_STATE_DISABLED;
  18. IfDescEp->robustness = DEFAULT_ROBUSTNESS;
  19. IfDescEp->threshold = DEFAULT_THRESHOLD; /* ttl limit */
  20. IfDescEp->ratelimit = DEFAULT_RATELIMIT;
  21. diff --git a/src/igmpproxy.c b/src/igmpproxy.c
  22. index 1ece15a..35000c7 100644
  23. --- a/src/igmpproxy.c
  24. +++ b/src/igmpproxy.c
  25. @@ -186,8 +186,10 @@ int igmpProxyInit() {
  26. }
  27. }
  28. - addVIF( Dp );
  29. - vifcount++;
  30. + if (Dp->state != IF_STATE_DISABLED) {
  31. + addVIF( Dp );
  32. + vifcount++;
  33. + }
  34. }
  35. }
  36. --
  37. 1.7.2.5