Hi Jouni,<br>Thanks for the quick reply. Actually, in eapol_test, the original EAP-Messages are encapsulated and decapsulated inside RADIUS client in single program. I want to separate them out. I am trying to send the original EAP message/packet (e.g. over the TCP connection) towards the Radius client (running as a separate process or on some other machine). The radius client should then encapsulate EAP-Message inside Radius packet which is sent over UDP to the Radius Server,<br>
<br>Radius Server process the radius request and send the radius response towards the Radius Client over UDP.  Then Radius client decapsulate the Eap-Response message from Radius Packet and send back EAP-Response message over the TCP connection to the EAP-Peer (which may be running on some other machine).<br>
<br>For the Radius packets, they are sent/received over UDP. But what about the EAP-Requests/Responses. Are they sent/received between EAP-Peer and Radius Client over TCP/Unix socket/UDP in eapol_test??<br>I want to  transport EAP  messages over TCP connection between EAP-Peer and Radius Client for EAP-SIM testing.<br>
<br>About the preauth_test, Can I use it for EAP-SIm testing between EAP-Peer and Eap-Server?<br><br>BR,<br>AAMER<br><br><div class="gmail_quote">On Fri, Aug 3, 2012 at 11:30 AM, Jouni Malinen <span dir="ltr">&lt;<a href="mailto:j@w1.fi" target="_blank">j@w1.fi</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Aug 03, 2012 at 09:51:43AM +0200, Aamer Sattar wrote:<br>
&gt; I have used eapol_test for EAP-SIM testing with hostapd as a Radius Server.<br>
&gt; Now as eapol_test contains both the EAP-Peer and Radius Client inside it. I<br>
&gt; want to separate out the EAP-Peer and Radius Client to run the both<br>
&gt; components on separate machines for showing the below concept:<br>
&gt;<br>
&gt; EAP-Peer &lt;----&gt; Radius Client (E.g. AP) &lt;-----&gt;Radius Server<br>
<br>
</div>How about run an AP on the separate host and a WLAN station (or same<br>
using the &#39;wired&#39; driver interface and Ethernet) on the device that runs<br>
EAP-Peer?<br>
<div class="im"><br>
&gt; Should I try to just separate out functionality in eapol_test.c or some<br>
&gt; other relevant components to achieve it easily. Any pointers to this will<br>
&gt; be highly appreciated.<br>
<br>
</div>I&#39;m not sure why you would use eapol_test.c for this.. This is the<br>
normal use case for APs and NAS devices in general. The main purpose of<br>
eapol_test was to avoid having to do that with two components. If you<br>
want to use a separate test tool, you could use hostapd on the &quot;AP&quot;<br>
(e.g., with driver=none or driver=test to avoid having to have any WLAN<br>
hardware) and then use preauth_test on the EAP client. This uses RSN<br>
pre-authentication frames between the EAP-Peer and RADIUS client and is<br>
pretty similar to the case of using wired IEEE 802.1X.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Jouni Malinen                                            PGP id EFC895FA<br>
_______________________________________________<br>
HostAP mailing list<br>
<a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br>
<a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
</font></span></blockquote></div><br>