From c0cf8924783347c4f4b4faccba88247f3cd6accd Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Mon, 12 May 2014 17:44:20 +0400 Subject: radius: use NAS-Port-Id in Access-Accept for interface renaming --- accel-pppd/radius/radius.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'accel-pppd/radius') diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c index d6d7de07..26e59bad 100644 --- a/accel-pppd/radius/radius.c +++ b/accel-pppd/radius/radius.c @@ -142,11 +142,15 @@ int rad_proc_attrs(struct rad_req_t *req) a->addr = attr->val.ipv6prefix.prefix; list_add_tail(&a->entry, &req->rpd->ipv6_dp.prefix_list); break; + case NAS_Port_Id: + ap_session_rename(req->rpd->ses, attr->val.string, attr->len); + break; } } if (dns.ses) triton_event_fire(EV_DNS, &dns); + if (wins.ses) triton_event_fire(EV_WINS, &wins); -- cgit v1.2.3