Problem in Module Statistics in freeradius
Himanshu Pandey
pandey_himanshu80 at rediffmail.com
Sun Sep 28 15:34:10 CEST 2014
Dear Alan,
I added the following code in modcall.c under the function modcall_recurse():
rlm_rcode_t result;
module_t module;
int i;
result = call_modsingle(c->method, sp, request);
module.rtcode[result] = module.rtcode[result] + 1;
/*Used printf to view the array elements*/
for (i = 0; i < RLM_MODULE_NUMCODES; i++) {
printf("\nRTCODE[%d]=%ld\n",i,module.rtcode[i]);
}
In module_t structure I added my unsigned long array:
uint64_t rtcode[RLM_MODULE_NUMCODES]; //Used for module return codes
But I am getting junk values in array at times and I don't know where exactly shall I do memset(module.rtcode,0,sizeof(module.rtcode));
Please help to resolve this.
Following debug log is generated when I run radiusd -X.
Starting - reading configuration files ...
including dictionary file /opt/freeradius/share/freeradius/dictionary
including dictionary file /opt/freeradius/share/freeradius/dictionary.dhcp
including dictionary file /opt/freeradius/share/freeradius/dictionary.vqp
including dictionary file /opt/freeradius/etc/raddb/dictionary
including configuration file /opt/freeradius/etc/raddb/radiusd.conf
including configuration file /opt/freeradius/etc/raddb/proxy.conf
including configuration file /opt/freeradius/etc/raddb/clients.conf
including files in directory /opt/freeradius/etc/raddb/mods-enabled/
including configuration file /opt/freeradius/etc/raddb/mods-enabled/always
including configuration file /opt/freeradius/etc/raddb/mods-enabled/logintime
including configuration file /opt/freeradius/etc/raddb/mods-enabled/digest
including configuration file /opt/freeradius/etc/raddb/mods-enabled/cache_eap
including configuration file /opt/freeradius/etc/raddb/mods-enabled/exec
including configuration file /opt/freeradius/etc/raddb/mods-enabled/dynamic_clients
including configuration file /opt/freeradius/etc/raddb/mods-enabled/files
including configuration file /opt/freeradius/etc/raddb/mods-enabled/passwd
including configuration file /opt/freeradius/etc/raddb/mods-enabled/replicate
including configuration file /opt/freeradius/etc/raddb/mods-enabled/pap
including configuration file /opt/freeradius/etc/raddb/mods-enabled/realm
including configuration file /opt/freeradius/etc/raddb/mods-enabled/attr_filter
including configuration file /opt/freeradius/etc/raddb/mods-enabled/ntlm_auth
including configuration file /opt/freeradius/etc/raddb/mods-enabled/detail
including configuration file /opt/freeradius/etc/raddb/mods-enabled/dhcp
including configuration file /opt/freeradius/etc/raddb/mods-enabled/utf8
including configuration file /opt/freeradius/etc/raddb/mods-enabled/chap
including configuration file /opt/freeradius/etc/raddb/mods-enabled/unpack
including configuration file /opt/freeradius/etc/raddb/mods-enabled/sradutmp
including configuration file /opt/freeradius/etc/raddb/mods-enabled/mschap
including configuration file /opt/freeradius/etc/raddb/mods-enabled/expiration
including configuration file /opt/freeradius/etc/raddb/mods-enabled/eap
including configuration file /opt/freeradius/etc/raddb/mods-enabled/unix
including configuration file /opt/freeradius/etc/raddb/mods-enabled/expr
including configuration file /opt/freeradius/etc/raddb/mods-enabled/radutmp
including configuration file /opt/freeradius/etc/raddb/mods-enabled/soh
including configuration file /opt/freeradius/etc/raddb/mods-enabled/linelog
including configuration file /opt/freeradius/etc/raddb/mods-enabled/detail.log
including configuration file /opt/freeradius/etc/raddb/mods-enabled/preprocess
including configuration file /opt/freeradius/etc/raddb/mods-enabled/echo
including files in directory /opt/freeradius/etc/raddb/policy.d/
including configuration file /opt/freeradius/etc/raddb/policy.d/operator-name
including configuration file /opt/freeradius/etc/raddb/policy.d/canonicalization
including configuration file /opt/freeradius/etc/raddb/policy.d/dhcp
including configuration file /opt/freeradius/etc/raddb/policy.d/debug
including configuration file /opt/freeradius/etc/raddb/policy.d/eap
including configuration file /opt/freeradius/etc/raddb/policy.d/cui
including configuration file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140928/3f5ed95e/attachment.html>
More information about the Freeradius-Users
mailing list