diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-05-08 13:14:34 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-05-08 13:14:34 +0000 |
commit | d98e49d6090a7f2952bbea40844504f13b5e57b0 (patch) | |
tree | 32bf1e20eb4a7de30e6fed6668a5371d38c301f0 /package/network/services/igmpproxy/patches/002-Change-default-interface-state-to-disabled-wrt-29458.patch | |
parent | 30a33aa15084ef8e3c15722bfe31f8bb9cc183d3 (diff) | |
download | master-187ad058-d98e49d6090a7f2952bbea40844504f13b5e57b0.tar.gz master-187ad058-d98e49d6090a7f2952bbea40844504f13b5e57b0.tar.bz2 master-187ad058-d98e49d6090a7f2952bbea40844504f13b5e57b0.zip |
igmpproxy: move to trunk, add myself as maintainer
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40730 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/igmpproxy/patches/002-Change-default-interface-state-to-disabled-wrt-29458.patch')
-rw-r--r-- | package/network/services/igmpproxy/patches/002-Change-default-interface-state-to-disabled-wrt-29458.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/package/network/services/igmpproxy/patches/002-Change-default-interface-state-to-disabled-wrt-29458.patch b/package/network/services/igmpproxy/patches/002-Change-default-interface-state-to-disabled-wrt-29458.patch new file mode 100644 index 0000000000..d7550d7961 --- /dev/null +++ b/package/network/services/igmpproxy/patches/002-Change-default-interface-state-to-disabled-wrt-29458.patch @@ -0,0 +1,43 @@ +From 85e240727305b156097ee7aa0f0c4473a136291f Mon Sep 17 00:00:00 2001 +From: Constantin Baranov <const@mimas.ru> +Date: Tue, 23 Feb 2010 21:08:02 +0400 +Subject: [PATCH] Change default interface state to disabled (wrt #2945877) + +--- + src/ifvc.c | 2 +- + src/igmpproxy.c | 6 ++++-- + 2 files changed, 5 insertions(+), 3 deletions(-) + +diff --git a/src/ifvc.c b/src/ifvc.c +index 545b3b4..9d7ee97 100644 +--- a/src/ifvc.c ++++ b/src/ifvc.c +@@ -139,7 +139,7 @@ void buildIfVc() { + IfDescEp->allowednets->subnet_addr = subnet; + + // Set the default params for the IF... +- IfDescEp->state = IF_STATE_DOWNSTREAM; ++ IfDescEp->state = IF_STATE_DISABLED; + IfDescEp->robustness = DEFAULT_ROBUSTNESS; + IfDescEp->threshold = DEFAULT_THRESHOLD; /* ttl limit */ + IfDescEp->ratelimit = DEFAULT_RATELIMIT; +diff --git a/src/igmpproxy.c b/src/igmpproxy.c +index 1ece15a..35000c7 100644 +--- a/src/igmpproxy.c ++++ b/src/igmpproxy.c +@@ -186,8 +186,10 @@ int igmpProxyInit() { + } + } + +- addVIF( Dp ); +- vifcount++; ++ if (Dp->state != IF_STATE_DISABLED) { ++ addVIF( Dp ); ++ vifcount++; ++ } + } + } + +-- +1.7.2.5 + |