diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2015-01-28 11:09:23 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2015-01-28 11:09:23 +0300 |
commit | 39c4cfc0365330034fa04528b2558bd977bb861c (patch) | |
tree | fdcf1d6f68e0ee5e960f0b4b70b317bb37a6dab5 | |
parent | c362f0d1dc4b3feef318233007999db206dc3b1a (diff) | |
download | accel-ppp-39c4cfc0365330034fa04528b2558bd977bb861c.tar.gz accel-ppp-39c4cfc0365330034fa04528b2558bd977bb861c.zip |
Revert "ipoe: fixed bug"
This reverts commit c362f0d1dc4b3feef318233007999db206dc3b1a.
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index d5937d55..cfaaec40 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -914,11 +914,10 @@ static void __ipoe_session_activate(struct ipoe_session *ses) if (ses->serv->opt_mode == MODE_L2 && ses->serv->opt_ipv6 && sock6_fd != -1) { ses->ses.ipv6 = ipdb_get_ipv6(&ses->ses); - if (!ses->ses.ipv6) { + if (!ses->ses.ipv6) log_ppp_warn("ipoe: no free IPv6 address\n"); - if (!ses->ses.ipv6->peer_intf_id) - ses->ses.ipv6->peer_intf_id = htobe64(1); - } + if (!ses->ses.ipv6->peer_intf_id) + ses->ses.ipv6->peer_intf_id = htobe64(1); } __sync_sub_and_fetch(&stat_starting, 1); |