<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt; color: rgb(0, 0, 0);"><div>Hi Jouni,<br><br>I thought I would ask you for&nbsp; some help with my eap testing. <br><br>I am testing my radius server with eapol_test that comes with the wpa_supplicant. <br><br>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.<br><br>Following
is taken from src/radius/radius_client.c from wpa_supplicant.<br><br>/* Defaults for RADIUS retransmit values (exponential backoff) */<br>#define RADIUS_CLIENT_FIRST_WAIT 3 /* seconds */<br>#define RADIUS_CLIENT_MAX_WAIT<span style="font-weight: bold;"> 99999 </span>/* seconds */<br>#define RADIUS_CLIENT_MAX_RETRIES 10 /* maximum number of retransmit attempts<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * before entry is removed from retransmit<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * list */<br>#define RADIUS_CLIENT_MAX_ENTRIES 30 /* maximum number of entries in
 retransmit<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * list (oldest will be removed, if this<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * limit is exceeded) */<br>#define RADIUS_CLIENT_NUM_FAILOVER 4 /* try to change RADIUS server after this<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * many failed retry attempts */<br><br><br>Thanks,<br>RC.<br></div>
</div></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> R C &lt;rc_work@yahoo.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Jouni Malinen &lt;j@w1.fi&gt;; hostap@lists.shmoo.com<br><b><span style="font-weight: bold;">Sent:</span></b> Wed, March 17, 2010 3:22:18 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: eapol_test retransmits 10 times<br></font><br><meta http-equiv="x-dns-prefetch-control" content="off"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Thanks, Jouni.<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr
 size="1"><b><span style="font-weight: bold;">From:</span></b> Jouni Malinen &lt;j@w1.fi&gt;<br><b><span style="font-weight: bold;">To:</span></b> hostap@lists.shmoo.com<br><b><span style="font-weight: bold;">Sent:</span></b> Wed, March 17, 2010 12:29:12 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: eapol_test retransmits 10 times<br></font><br>On Mon, Mar 15, 2010 at 01:21:02PM -0700, R C wrote:<br><br>&gt; My eapol_test retransmits 10 times even though i set the<br>&gt; RADIUS_CLIENT_MAX_RETRIES to 0. How can i avoid it retransmitting 10<br>&gt; times? It
 retransmits 10 times totally, once every 3 seconds. Following is taken from src/radius/radius_client.c from wpa_supplicant.<br><br>&gt; /* Defaults for RADIUS retransmit values (exponential backoff) */<br>&gt; #define RADIUS_CLIENT_FIRST_WAIT 3 /* seconds */<br>&gt; #define RADIUS_CLIENT_MAX_WAIT 120 /* seconds */<br>&gt; #define RADIUS_CLIENT_MAX_RETRIES 0 /* maximum number of retransmit attempts<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * before entry is removed from retransmit<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * list */<br>&gt; #define RADIUS_CLIENT_MAX_ENTRIES 0 /* maximum number of entries in retransmit<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  *
 list (oldest will be removed, if this<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * limit is exceeded) */<br><br><br>The current implementation does not like RADIUS_CLIENT_MAX_ENTRIES = 0<br>value at all, i.e., it depends on being able store at least one entry<br>even if it would not actually end up being used for a retry. Just<br>changing the RADIUS_CLIENT_MAX_RETRIES value and leaving everything else<br>unmodified should be enough. It may not currently prevent all retries,<br>but it did seem to limit retries when the max entries limit was not<br>changed.<br><br>-- <br>Jouni Malinen&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PGP id EFC895FA<br>_______________________________________________<br>HostAP mailing list<br><a rel="nofollow"
 ymailto="mailto:HostAP@lists.shmoo.com" target="_blank" href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br><a rel="nofollow" target="_blank" href="http://lists.shmoo.com/mailman/listinfo/hostap">http://lists.shmoo.com/mailman/listinfo/hostap</a><br></div></div>
</div><br>

      <meta http-equiv="x-dns-prefetch-control" content="on"></div></div>
</div><br>



      </body></html>