diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2013-02-05 12:33:05 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-02-05 12:33:05 +0400 |
commit | 7ba4600fc2ce3e03d9334afa9dd42bd76beba2a6 (patch) | |
tree | 48a75f43c38586310202af8d958b3e3e25d61868 | |
parent | 6254f3419eadcf92f2182f1406fdccbe89739a52 (diff) | |
download | accel-ppp-7ba4600fc2ce3e03d9334afa9dd42bd76beba2a6.tar.gz accel-ppp-7ba4600fc2ce3e03d9334afa9dd42bd76beba2a6.zip |
ipoe: do not assign ip to interface if shared=0 and ifcfg=0 (ip unnumbered)
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 4 |
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); |