summaryrefslogtreecommitdiff
path: root/accel-pppd/radius
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-05-12 17:44:20 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-05-12 17:44:20 +0400
commitc0cf8924783347c4f4b4faccba88247f3cd6accd (patch)
tree8ba9631e36d54fc7da8d644a879b2af1b9820c1e /accel-pppd/radius
parentd0fa7ad6fb1d0ace4c292c7084ff1752ef5c45b7 (diff)
downloadaccel-ppp-c0cf8924783347c4f4b4faccba88247f3cd6accd.tar.gz
accel-ppp-c0cf8924783347c4f4b4faccba88247f3cd6accd.zip
radius: use NAS-Port-Id in Access-Accept for interface renaming
Diffstat (limited to 'accel-pppd/radius')
-rw-r--r--accel-pppd/radius/radius.c4
1 files changed, 4 insertions, 0 deletions
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);