summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2015-12-04 12:07:17 +0300
committerDmitry Kozlov <xeb@mail.ru>2015-12-04 12:07:17 +0300
commit5d8e7d0fbce773249b8c158509fe55f3c7fae422 (patch)
tree5b952e3b7c8bbf4f29e395fec56a262db35b0468
parent08f1d08a52039129fa8e41e23708a1e7d80a01b0 (diff)
downloadaccel-ppp-5d8e7d0fbce773249b8c158509fe55f3c7fae422.tar.gz
accel-ppp-5d8e7d0fbce773249b8c158509fe55f3c7fae422.zip
ipoe: set session interface name to parent interface name if shared=0
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index a6dd2778..95b75338 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -1814,6 +1814,9 @@ static struct ipoe_session *ipoe_session_create_up(struct ipoe_serv *serv, struc
ses->yiaddr = iph->saddr;
ses->UP = 1;
+ if (!serv->opt_shared)
+ strncpy(ses->ses.ifname, serv->ifname, AP_IFNAME_LEN);
+
ses->ctrl.called_station_id = _strdup(serv->ifname);
if (conf_calling_sid == SID_MAC) {