summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-03-18 22:02:54 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-03-18 22:02:54 +0300
commit53eaf7555a5f3f0b60854acf7933484c98ada917 (patch)
tree424b010e322404cc6d635a26a654477750db39b6
parenteb26d0d42c5cc1d0db5633ae5bf970c39614c0ca (diff)
downloadaccel-ppp-53eaf7555a5f3f0b60854acf7933484c98ada917.tar.gz
accel-ppp-53eaf7555a5f3f0b60854acf7933484c98ada917.zip
ipoe: call ap_session_set_ifindex to correct interface counters
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index 79e1de2..514e787 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -600,9 +600,10 @@ cont:
if (ipoe_create_interface(ses))
return;
- ap_session_set_ifindex(&ses->ses);
}
+ ap_session_set_ifindex(&ses->ses);
+
if (ses->dhcpv4_request && ses->serv->dhcpv4_relay) {
dhcpv4_relay_send(ses->serv->dhcpv4_relay, ses->dhcpv4_request, ses->relay_server_id, ses->serv->ifname, conf_agent_remote_id);