summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/ppp_ipcp.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-03-11 11:19:54 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-03-11 11:19:54 +0400
commit1e3e55bf5d13468c7272c626fd556c8f28c38d66 (patch)
tree9f9519e1d6400690b972933e14a6ea1c70529374 /accel-pppd/ppp/ppp_ipcp.c
parent48a75b25699a78d4425a742ac3cdb0a4ada45a3d (diff)
downloadaccel-ppp-1e3e55bf5d13468c7272c626fd556c8f28c38d66.tar.gz
accel-ppp-1e3e55bf5d13468c7272c626fd556c8f28c38d66.zip
radius: add support for MS-Primary-DNS-Server/MS-Secondary-DNS-Server attributes
Diffstat (limited to 'accel-pppd/ppp/ppp_ipcp.c')
-rw-r--r--accel-pppd/ppp/ppp_ipcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/accel-pppd/ppp/ppp_ipcp.c b/accel-pppd/ppp/ppp_ipcp.c
index 8af84caa..625358aa 100644
--- a/accel-pppd/ppp/ppp_ipcp.c
+++ b/accel-pppd/ppp/ppp_ipcp.c
@@ -91,6 +91,9 @@ static struct ppp_layer_data_t *ipcp_layer_init(struct ppp_t *ppp)
ppp_register_unit_handler(ppp, &ipcp->hnd);
+ INIT_LIST_HEAD(&ipcp->options);
+ ipcp_options_init(ipcp);
+
ipcp->fsm.proto = PPP_IPCP;
ppp_fsm_init(&ipcp->fsm);
@@ -104,7 +107,6 @@ static struct ppp_layer_data_t *ipcp_layer_init(struct ppp_t *ppp)
ipcp->fsm.send_term_req = send_term_req;
ipcp->fsm.send_term_ack = send_term_ack;
- INIT_LIST_HEAD(&ipcp->options);
INIT_LIST_HEAD(&ipcp->ropt_list);
ipcp->ld.passive = conf_ipv4 == IPV4_ALLOW || conf_ipv4 == IPV4_DENY;
@@ -128,8 +130,6 @@ int ipcp_layer_start(struct ppp_layer_data_t *ld)
log_ppp_debug("ipcp_layer_start\n");
- ipcp_options_init(ipcp);
-
ipcp->starting = 1;
if (conf_ipv4 != IPV4_DENY) {