summaryrefslogtreecommitdiff
path: root/accel-pptpd/radius/dict.c
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-09-09 16:10:40 +0400
committerKozlov Dmitry <dima@server>2010-09-09 16:13:25 +0400
commiteac0adf4b2b038690c761a126cb3e55a888060df (patch)
treea286e779ad7f878bc7b8eaedb99f5a64f29b1632 /accel-pptpd/radius/dict.c
parent29b03dcfbd3b4783b0192e5f8c9bb6281acf44d5 (diff)
downloadaccel-ppp-eac0adf4b2b038690c761a126cb3e55a888060df.tar.gz
accel-ppp-eac0adf4b2b038690c761a126cb3e55a888060df.zip
radius: implemented DM/CoA extensions
Diffstat (limited to 'accel-pptpd/radius/dict.c')
-rw-r--r--accel-pptpd/radius/dict.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/accel-pptpd/radius/dict.c b/accel-pptpd/radius/dict.c
index d76c2c3..4a0435a 100644
--- a/accel-pptpd/radius/dict.c
+++ b/accel-pptpd/radius/dict.c
@@ -42,10 +42,10 @@ static int split(char *buf, char **ptr)
}
buf = skip_word(buf);
- if (*buf == '\n')
+ //if (*buf == '\n')
*buf = 0;
- else if (*buf)
- return -1;
+ //else if (*buf)
+ // return -1;
return 0;
}
@@ -124,6 +124,8 @@ int rad_dict_load(const char *fname)
attr->type = ATTR_TYPE_DATE;
else if (!strcmp(ptr[2], "ipaddr"))
attr->type = ATTR_TYPE_IPADDR;
+ else if (!strcmp(ptr[2], "octets"))
+ attr->type = ATTR_TYPE_OCTETS;
else {
log_error("radius:%s:%i: unknown attribute type\n", fname, n);
goto out_err;