RADIUS_CLIENT_MAX_WAIT does not work

R C rc_work
Wed Mar 17 18:51:57 PDT 2010


Hi Jouni,

I thought I would ask you for  some help with my eap testing. 

I am testing my radius server with eapol_test that comes with the wpa_supplicant. 

If
the radius server is down, I want the eapol_test to not give up trying
to talk to the radius server. So, i set the parameter
RADIUS_CLIENT_MAX_WAIT to 99999 seconds and the eapol_test timeout to
10000. But, still it will stop just before the next client retransmit
that is in 48 seconds. Is there any other parameter to modify? thanks
for your help.

Following
is taken from src/radius/radius_client.c from wpa_supplicant.

/* Defaults for RADIUS retransmit values (exponential backoff) */
#define RADIUS_CLIENT_FIRST_WAIT 3 /* seconds */
#define RADIUS_CLIENT_MAX_WAIT99999 /* seconds */
#define RADIUS_CLIENT_MAX_RETRIES 10 /* maximum number of retransmit attempts
                                      * before entry is removed from retransmit
                                      * list */
#define RADIUS_CLIENT_MAX_ENTRIES 30 /* maximum number of entries in retransmit
                                      * list (oldest will be removed, if this
                                      * limit is exceeded) */
#define RADIUS_CLIENT_NUM_FAILOVER 4 /* try to change RADIUS server after this
                                      * many failed retry attempts */


Thanks,
RC.




________________________________
From: R C <rc_work at yahoo.com>
To: Jouni Malinen <j at w1.fi>; hostap at lists.shmoo.com
Sent: Wed, March 17, 2010 3:22:18 PM
Subject: Re: eapol_test retransmits 10 times


Thanks, Jouni.




________________________________
From: Jouni Malinen <j at w1.fi>
To: hostap at lists.shmoo.com
Sent: Wed, March 17, 2010 12:29:12 PM
Subject: Re: eapol_test retransmits 10 times

On Mon, Mar 15, 2010 at 01:21:02PM -0700, R C wrote:

> My eapol_test retransmits 10 times even though i set the
> RADIUS_CLIENT_MAX_RETRIES to 0. How can i avoid it retransmitting 10
> times? It retransmits 10 times totally, once every 3 seconds. Following is taken from src/radius/radius_client.c from wpa_supplicant.

> /* Defaults for RADIUS retransmit values (exponential backoff) */
> #define RADIUS_CLIENT_FIRST_WAIT 3 /* seconds */
> #define RADIUS_CLIENT_MAX_WAIT 120 /* seconds */
> #define RADIUS_CLIENT_MAX_RETRIES 0 /* maximum number of retransmit attempts
>                                       * before entry is removed from retransmit
>                                       * list */
> #define RADIUS_CLIENT_MAX_ENTRIES 0 /* maximum number of entries in retransmit
>                                       * list (oldest will be removed, if this
>                                       * limit is exceeded) */


The current implementation does not like RADIUS_CLIENT_MAX_ENTRIES = 0
value at all, i.e., it depends on being able store at least one entry
even if it would not actually end up being used for a retry. Just
changing the RADIUS_CLIENT_MAX_RETRIES value and leaving everything else
unmodified should be enough. It may not currently prevent all retries,
but it did seem to limit retries when the max entries limit was not
changed.

-- 
Jouni Malinen                                            PGP id EFC895FA
_______________________________________________
HostAP mailing list
HostAP at lists.shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20100317/7eaae595/attachment-0001.htm 



More information about the Hostap mailing list