d7550d7961d7af42b44f13a7505291b4eeac357c
[openwrt/staging/adrian.git] /
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 ---
7 src/ifvc.c | 2 +-
8 src/igmpproxy.c | 6 ++++--
9 2 files changed, 5 insertions(+), 3 deletions(-)
10
11 diff --git a/src/ifvc.c b/src/ifvc.c
12 index 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;
24 diff --git a/src/igmpproxy.c b/src/igmpproxy.c
25 index 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 --
42 1.7.2.5
43