diff options
author | Kozlov Dmitry <dima@server> | 2010-09-09 16:10:40 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-09-09 16:13:25 +0400 |
commit | eac0adf4b2b038690c761a126cb3e55a888060df (patch) | |
tree | a286e779ad7f878bc7b8eaedb99f5a64f29b1632 /accel-pptpd/radius/dict.c | |
parent | 29b03dcfbd3b4783b0192e5f8c9bb6281acf44d5 (diff) | |
download | accel-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.c | 8 |
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; |