summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe/ipoe.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2018-01-09 21:49:25 +0300
committerDmitry Kozlov <xeb@mail.ru>2018-01-09 21:49:25 +0300
commit109e23ab396db599911deaba2dd06bcc3081f5ea (patch)
tree929478fdfb37f32fee89a96d7b15c9de51361a81 /accel-pppd/ctrl/ipoe/ipoe.c
parent775d49924cc3a0b479a01bb5dde402dfbfc96782 (diff)
downloadaccel-ppp-109e23ab396db599911deaba2dd06bcc3081f5ea.tar.gz
accel-ppp-109e23ab396db599911deaba2dd06bcc3081f5ea.zip
ipoe: do not create ipoe interface with server's ifindex
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index c0adc7f..7f1080d 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -547,7 +547,7 @@ static int ipoe_create_interface(struct ipoe_session *ses)
} else {
pthread_mutex_unlock(&uc_lock);
- ses->ifindex = ipoe_nl_create(ses->serv->ifindex);
+ ses->ifindex = ipoe_nl_create();
if (ses->ifindex == -1) {
log_ppp_error("ipoe: failed to create interface\n");
ap_session_terminate(&ses->ses, TERM_NAS_ERROR, 1);