summaryrefslogtreecommitdiff
path: root/accel-pppd/radius/radius.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/radius.c
parentc69fb2ed39346fd5091a4e30606cb5bb866aa432 (diff)
downloadaccel-ppp-xebd-d5776039b12c3c1016b3bb6ccede69bacf23ae1e.tar.gz
accel-ppp-xebd-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/radius.c')
-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 26e59ba..a3b211e 100644
--- a/accel-pppd/radius/radius.c
+++ b/accel-pppd/radius/radius.c
@@ -45,6 +45,8 @@ int conf_req_limit;
static const char *conf_default_realm;
static int conf_default_realm_len;
+const char *conf_attr_tunnel_type;
+
static LIST_HEAD(sessions);
static pthread_rwlock_t sessions_lock = PTHREAD_RWLOCK_INITIALIZER;
@@ -632,6 +634,8 @@ static int load_config(void)
if (opt)
conf_req_limit = atoi(opt);
+ conf_attr_tunnel_type = conf_get_opt("radius", "attr-tunnel-type");
+
conf_default_realm = conf_get_opt("radius", "default-realm");
if (conf_default_realm)
conf_default_realm_len = strlen(conf_default_realm);