summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2011-08-24 16:21:21 +0400
committerKozlov Dmitry <dima@server>2011-08-24 16:21:21 +0400
commitfd88c1f5973cba63c3b001d02d2c668344c75736 (patch)
tree7c06202605ea0ba2cca14f50d4dd8f7f102f377e /accel-pppd
parentddf521bb0f46c589d18d25bbecabd986ee521182 (diff)
downloadaccel-ppp-fd88c1f5973cba63c3b001d02d2c668344c75736.tar.gz
accel-ppp-fd88c1f5973cba63c3b001d02d2c668344c75736.zip
ppp: make ipcp/ipv6cp passive if ipv4/ipv6=deny
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ppp/ppp_ipcp.c2
-rw-r--r--accel-pppd/ppp/ppp_ipv6cp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ppp/ppp_ipcp.c b/accel-pppd/ppp/ppp_ipcp.c
index af192fe6..6e349899 100644
--- a/accel-pppd/ppp/ppp_ipcp.c
+++ b/accel-pppd/ppp/ppp_ipcp.c
@@ -105,7 +105,7 @@ static struct ppp_layer_data_t *ipcp_layer_init(struct ppp_t *ppp)
INIT_LIST_HEAD(&ipcp->options);
INIT_LIST_HEAD(&ipcp->ropt_list);
- ipcp->ld.passive = conf_ipv4 == IPV4_ALLOW;
+ ipcp->ld.passive = conf_ipv4 == IPV4_ALLOW || conf_ipv4 == IPV4_DENY;
return &ipcp->ld;
}
diff --git a/accel-pppd/ppp/ppp_ipv6cp.c b/accel-pppd/ppp/ppp_ipv6cp.c
index 4ad1cfbf..371efcbd 100644
--- a/accel-pppd/ppp/ppp_ipv6cp.c
+++ b/accel-pppd/ppp/ppp_ipv6cp.c
@@ -105,7 +105,7 @@ static struct ppp_layer_data_t *ipv6cp_layer_init(struct ppp_t *ppp)
INIT_LIST_HEAD(&ipv6cp->options);
INIT_LIST_HEAD(&ipv6cp->ropt_list);
- ipv6cp->ld.passive = conf_ipv6 == IPV6_ALLOW;
+ ipv6cp->ld.passive = conf_ipv6 == IPV6_ALLOW || conf_ipv6 == IPV6_DENY;
return &ipv6cp->ld;
}