From 5697671c8cb6018de4e4307c459afd25d3b58410 Mon Sep 17 00:00:00 2001 From: François Cachereul Date: Tue, 27 Jan 2015 12:07:03 +0100 Subject: ppp: set unit_idx from NAS_Port attribute if present MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Cachereul --- accel-pppd/radius/radius.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'accel-pppd/radius/radius.c') diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c index 83d6d07..9b211be 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; -- cgit v1.2.3