From: Alan T. DeKok Date: Fri, 23 Oct 2015 16:43:14 +0000 (-0400) Subject: Increment timeouts for CoA packets, too X-Git-Tag: release_3_0_11~224 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f56f71f17a8692f88377cb6eac9534dc41f11be;p=thirdparty%2Ffreeradius-server.git Increment timeouts for CoA packets, too --- diff --git a/src/main/process.c b/src/main/process.c index 14cc3b04057..0f0312650ea 100644 --- a/src/main/process.c +++ b/src/main/process.c @@ -2568,6 +2568,8 @@ int request_proxy_reply(RADIUS_PACKET *packet) #ifdef WITH_ACCOUNTING case PW_CODE_ACCOUNTING_REQUEST: + proxy_acct_stats.last_packet = packet->timestamp.tv_sec; + request->proxy_listener->stats.total_responses++; proxy_acct_stats.last_packet = packet->timestamp.tv_sec; break; @@ -3930,6 +3932,17 @@ static void proxy_wait_for_reply(REQUEST *request, int action) FR_STATS_TYPE_INC(proxy_acct_stats.total_timeouts); } #endif +#ifdef WITH_COA + else if (home->type == HOME_TYPE_COA) { + if (request->proxy_listener) FR_STATS_TYPE_INC(request->proxy_listener->stats.total_timeouts); + + if (request->packet->code == PW_CODE_COA_REQUEST) { + FR_STATS_TYPE_INC(proxy_coa_stats.total_timeouts); + } else { + FR_STATS_TYPE_INC(proxy_dsc_stats.total_timeouts); + } + } +#endif /* * There was no response within the window. Stop