<div dir="ltr"><div>Dear all:</div><div><br></div><div>Hello, I&#39;m a college student learning hostapd.</div><div>My question may be stupid but it really confused me.</div><div><br></div><div>To be brief, my question is similiar to this thread:</div>
<div><a href="http://lists.shmoo.com/pipermail/hostap/2009-November/020584.html">http://lists.shmoo.com/pipermail/hostap/2009-November/020584.html</a></div><div><br></div><div>I would like to know that, is it possible to get the information of a packet(length/size/payload data) in hostapd just like we did in Wireshark?</div>
<div><br></div><div>I used a Laptop running hostapd, with wired Internet connection eth0 and wireless interface wlan2. And I used a android phone to connect to the Internet via hostapd running on the laptop.</div><div><br>
</div><div>I supposed that the packets sent from the phone to the Internet should go through the following path.</div><div>Phone WiFi interface -&gt; wlan2 of laptop -&gt; Hostapd running on laptop -&gt; eth0 of laptop -&gt; The Internet</div>
<div>Is this correct?</div><div><br></div><div>If so, could we intercept the packets during the process? </div><div>What file should I modify in order to achieve it?</div><div>I&#39;ve been tracing the source code for several days. Starting with eloop.c ,functions/files which registered with the callback function. Then libln and driver_nl80211.c. But couldn&#39;t find the answer.</div>
<div><br></div><div>I&#39;m sorry for my poor English.</div><div>Any hint would be appreciated. Thanks you very much.</div><div><br></div><div>-- <br></div><div dir="ltr">Best Regards,</div><div dir="ltr">Chien<br></div><div dir="ltr">
<br></div>
</div>