summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2013-02-05 12:33:05 +0400
committerKozlov Dmitry <xeb@mail.ru>2013-02-05 12:33:05 +0400
commit7ba4600fc2ce3e03d9334afa9dd42bd76beba2a6 (patch)
tree48a75f43c38586310202af8d958b3e3e25d61868 /accel-pppd/ctrl/ipoe
parent6254f3419eadcf92f2182f1406fdccbe89739a52 (diff)
downloadaccel-ppp-7ba4600fc2ce3e03d9334afa9dd42bd76beba2a6.tar.gz
accel-ppp-7ba4600fc2ce3e03d9334afa9dd42bd76beba2a6.zip
ipoe: do not assign ip to interface if shared=0 and ifcfg=0 (ip unnumbered)
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index 503dc55..a6ea66d 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -544,7 +544,7 @@ static void ipoe_ifcfg_add(struct ipoe_session *ses)
{
struct ipoe_serv *serv = ses->serv;
- if (ses->mask != 32) {
+ if (ses->serv->opt_shared || ses->serv->opt_ifcfg) {
if (ses->serv->opt_shared)
ipoe_serv_add_addr(ses->serv, ses->siaddr);
else {
@@ -565,7 +565,7 @@ static void ipoe_ifcfg_del(struct ipoe_session *ses)
{
struct ipoe_serv *serv = ses->serv;
- if (ses->mask != 32) {
+ if (ses->serv->opt_shared || ses->serv->opt_ifcfg) {
if (iproute_del(serv->ifindex, ses->yiaddr))
log_ppp_warn("ipoe: failed to delete route from interface '%s'\n", serv->ifname);