summaryrefslogtreecommitdiff
path: root/accel-pptpd/radius/auth.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2011-01-04 00:11:04 +0300
committerDmitry Kozlov <xeb@mail.ru>2011-01-04 00:11:04 +0300
commitcdd91cd6a6a7bd00dcf9a0ba78ea76e01ce33655 (patch)
tree9edc12be71dc10f7112aef9fa654faa2b6897b51 /accel-pptpd/radius/auth.c
parent709dd1595b4877471cb18397be28352730120067 (diff)
downloadaccel-ppp-cdd91cd6a6a7bd00dcf9a0ba78ea76e01ce33655.tar.gz
accel-ppp-cdd91cd6a6a7bd00dcf9a0ba78ea76e01ce33655.zip
pppoe: additional statistics
radius: additional statistics
Diffstat (limited to 'accel-pptpd/radius/auth.c')
-rw-r--r--accel-pptpd/radius/auth.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/accel-pptpd/radius/auth.c b/accel-pptpd/radius/auth.c
index 244cb6e0..692830ed 100644
--- a/accel-pptpd/radius/auth.c
+++ b/accel-pptpd/radius/auth.c
@@ -147,6 +147,7 @@ static int rad_auth_send(struct rad_req_t *req)
int i;
for(i = 0; i < conf_max_try; i++) {
+ __sync_add_and_fetch(&stat_auth_sent, 1);
if (rad_req_send(req, conf_verbose))
goto out;
@@ -154,11 +155,13 @@ static int rad_auth_send(struct rad_req_t *req)
if (req->reply) {
if (req->reply->id != req->pack->id) {
+ __sync_add_and_fetch(&stat_auth_lost, 1);
rad_packet_free(req->reply);
req->reply = NULL;
} else
break;
- }
+ } else
+ __sync_add_and_fetch(&stat_auth_lost, 1);
}
if (!req->reply)