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