FR 2.1.11git, Dead home server status server reply - possible minor bug
James J J Hooper
jjj.hooper at bristol.ac.uk
Mon Oct 25 00:12:55 CEST 2010
Hi Alan et al,
{Running FR from GIT upto commit b42665d4475835f38fe71ef749e39cd22587bcfa,
Sat Oct 9 17:52}
Doing:
/bin/echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 131,
FreeRADIUS-Stats-Server-IP-Address = ".....", FreeRADIUS-Stats-Server-Port
= 1812" | /usr/local/bin/radclient localhost:18120 status secret
when the homeserver is "dead" I get back:
Received response ID 178, code 2, length = 200
FreeRADIUS-Stats-Server-IP-Address = .....
FreeRADIUS-Stats-Server-Port = 1812
FreeRADIUS-Stats-Server-Outstanding-Requests = 0
FreeRADIUS-Stats-Server-State = Dead
FreeRADIUS-Stats-Server-Time-Of-Death = "Jan 6 1970 18:54:00 UTC"
FreeRADIUS-Total-Proxy-Access-Requests = 1651
FreeRADIUS-Total-Proxy-Access-Accepts = 122
FreeRADIUS-Total-Proxy-Access-Rejects = 60
FreeRADIUS-Total-Proxy-Access-Challenges = 1345
FreeRADIUS-Total-Proxy-Auth-Responses = 1527
FreeRADIUS-Total-Proxy-Auth-Duplicate-Requests = 0
FreeRADIUS-Total-Proxy-Auth-Malformed-Requests = 0
FreeRADIUS-Total-Proxy-Auth-Invalid-Requests = 0
FreeRADIUS-Total-Proxy-Auth-Dropped-Requests = 0
FreeRADIUS-Total-Proxy-Auth-Unknown-Types = 0
The date (Time-Of-Death) seems a little odd. I poked around in the code and
got as far as the below, which looks possibly wrong, but I don't understand
C enough to work out what to do with it from the surrounding code:
/src/main/event.c:
/*
* Enable the zombie period when we notice that the home
* server hasn't responded for a while. We back-date the
* zombie period to when we last received a response from
* the home server.
*/
home->state = HOME_STATE_ZOMBIE;
home->zombie_period_start.tv_sec = home->last_packet;
home->zombie_period_start.tv_sec = USEC / 2;
{Apologies if I'm totally going in the wrong direction}
Regards,
James
--
James J J Hooper
Network Specialist
Information Services
University of Bristol
http://www.wireless.bristol.ac.uk
--
More information about the Freeradius-Users
mailing list