From cdd91cd6a6a7bd00dcf9a0ba78ea76e01ce33655 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Tue, 4 Jan 2011 00:11:04 +0300 Subject: pppoe: additional statistics radius: additional statistics --- accel-pptpd/radius/auth.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'accel-pptpd/radius/auth.c') 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) -- cgit v1.2.3