summaryrefslogtreecommitdiff
path: root/accel-pppd/radius/req.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-06-17 21:31:10 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-06-17 21:31:10 +0400
commitd5776039b12c3c1016b3bb6ccede69bacf23ae1e (patch)
tree7c4b41d1cefc0f42438e61e6403a480d082ef3c7 /accel-pppd/radius/req.c
parentc69fb2ed39346fd5091a4e30606cb5bb866aa432 (diff)
downloadaccel-ppp-d5776039b12c3c1016b3bb6ccede69bacf23ae1e.tar.gz
accel-ppp-d5776039b12c3c1016b3bb6ccede69bacf23ae1e.zip
radius: introduced attr-tunnel-type option
If specified then accel-ppp will send tunnel type as string (pppoe,pptp,l2tp,ipoe).
Diffstat (limited to 'accel-pppd/radius/req.c')
-rw-r--r--accel-pppd/radius/req.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/accel-pppd/radius/req.c b/accel-pppd/radius/req.c
index 818252e..d688f58 100644
--- a/accel-pppd/radius/req.c
+++ b/accel-pppd/radius/req.c
@@ -109,6 +109,10 @@ static struct rad_req_t *__rad_req_alloc(struct radius_pd_t *rpd, int code, cons
if (rpd->attr_class)
if (rad_packet_add_octets(req->pack, NULL, "Class", rpd->attr_class, rpd->attr_class_len))
goto out_err;
+
+ if (conf_attr_tunnel_type)
+ if (rad_packet_add_str(req->pack, NULL, conf_attr_tunnel_type, rpd->ses->ctrl->name))
+ goto out_err;
list_for_each_entry(plugin, &req->rpd->plugin_list, entry) {
switch (code) {