summaryrefslogtreecommitdiff
path: root/accel-pppd/session.c
diff options
context:
space:
mode:
authorFrançois Cachereul <f.cachereul@alphalink.fr>2015-01-27 12:07:03 +0100
committerDmitry Kozlov <xeb@mail.ru>2015-02-20 11:21:41 +0300
commit5697671c8cb6018de4e4307c459afd25d3b58410 (patch)
tree59a8594e45e7fc201fdcf1d5c3cb6c200907ea2a /accel-pppd/session.c
parente4b4e0eef7fe04f7c202177cee82aa5ed4829387 (diff)
downloadaccel-ppp-5697671c8cb6018de4e4307c459afd25d3b58410.tar.gz
accel-ppp-5697671c8cb6018de4e4307c459afd25d3b58410.zip
ppp: set unit_idx from NAS_Port attribute if present
Signed-off-by: François Cachereul <f.cachereul@alphalink.fr>
Diffstat (limited to 'accel-pppd/session.c')
-rw-r--r--accel-pppd/session.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/session.c b/accel-pppd/session.c
index 12e4fc2..dd7ffd4 100644
--- a/accel-pppd/session.c
+++ b/accel-pppd/session.c
@@ -61,6 +61,7 @@ void __export ap_session_init(struct ap_session *ses)
memset(ses, 0, sizeof(*ses));
INIT_LIST_HEAD(&ses->pd_list);
ses->ifindex = -1;
+ ses->unit_idx = -1;
}
void __export ap_session_set_ifindex(struct ap_session *ses)