summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/ipcp_opt_ipaddr.c
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2011-08-22 12:33:21 +0400
committerKozlov Dmitry <dima@server>2011-08-22 12:33:21 +0400
commit6815ca31e970c2a8bd1a7b630293dd8313782df8 (patch)
treeac8881b68f56c25883e9db7fb3d94f60496cc215 /accel-pppd/ppp/ipcp_opt_ipaddr.c
parenta93e43804c9a37b3cc2141d5ada3158653a7a221 (diff)
downloadaccel-ppp-6815ca31e970c2a8bd1a7b630293dd8313782df8.tar.gz
accel-ppp-6815ca31e970c2a8bd1a7b630293dd8313782df8.zip
futher ipv6 work
Diffstat (limited to 'accel-pppd/ppp/ipcp_opt_ipaddr.c')
-rw-r--r--accel-pppd/ppp/ipcp_opt_ipaddr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/accel-pppd/ppp/ipcp_opt_ipaddr.c b/accel-pppd/ppp/ipcp_opt_ipaddr.c
index 217a080..ac45ac7 100644
--- a/accel-pppd/ppp/ipcp_opt_ipaddr.c
+++ b/accel-pppd/ppp/ipcp_opt_ipaddr.c
@@ -107,6 +107,9 @@ static int ipaddr_send_conf_req(struct ppp_ipcp_t *ipcp, struct ipcp_option_t *o
if (conf_check_exists && check_exists(ipcp->ppp, ipaddr_opt->ip->peer_addr))
return -1;
+ ipcp->ppp->ipaddr = ipaddr_opt->ip->addr;
+ ipcp->ppp->peer_ipaddr = ipaddr_opt->ip->peer_addr;
+
opt32->hdr.id=CI_ADDR;
opt32->hdr.len=6;
opt32->val=ipaddr_opt->ip->addr;
@@ -132,8 +135,8 @@ static int ipaddr_recv_conf_req(struct ppp_ipcp_t *ipcp, struct ipcp_option_t *o
return IPCP_OPT_REJ;
if (ipaddr_opt->ip->peer_addr == opt32->val) {
- ipcp->ppp->ipaddr = ipaddr_opt->ip->addr;
- ipcp->ppp->peer_ipaddr = ipaddr_opt->ip->peer_addr;
+ //ipcp->ppp->ipaddr = ipaddr_opt->ip->addr;
+ //ipcp->ppp->peer_ipaddr = ipaddr_opt->ip->peer_addr;
ipcp->delay_ack = ccp_ipcp_started(ipcp->ppp);
return IPCP_OPT_ACK;
}