summaryrefslogtreecommitdiff
path: root/accel-pppd/radius
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/radius
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/radius')
-rw-r--r--accel-pppd/radius/radius.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c
index 83d6d07d..9b211be0 100644
--- a/accel-pppd/radius/radius.c
+++ b/accel-pppd/radius/radius.c
@@ -146,6 +146,9 @@ int rad_proc_attrs(struct rad_req_t *req)
a->addr = attr->val.ipv6prefix.prefix;
list_add_tail(&a->entry, &rpd->ipv6_dp.prefix_list);
break;
+ case NAS_Port:
+ rpd->ses->unit_idx = attr->val.integer;
+ break;
case NAS_Port_Id:
ap_session_rename(rpd->ses, attr->val.string, attr->len);
break;