No subject

bogus at does.not.exist.com bogus at does.not.exist.com
Thu May 10 12:10:22 PDT 2012


I should work on the Linux kernel responsible for packets routing. Please
correct me if I'm wrong.
Thanks you very much.





2013/1/31 Arend van Spriel <arend at broadcom.com>

> On 01/30/2013 08:34 PM, Sergey Ryazanov wrote:
> > 2013/1/30 Chun Chien <johnyluyte at gmail.com>:
> >> I used a Laptop running hostapd, with wired Internet connection eth0 a=
nd
> >> wireless interface wlan2. And I used a android phone to connect to the
> >> Internet via hostapd running on the laptop.
> >>
> >> I supposed that the packets sent from the phone to the Internet should
> go
> >> through the following path.
> >> Phone WiFi interface -> wlan2 of laptop -> Hostapd running on laptop -=
>
> eth0
> >> of laptop -> The Internet
> >> Is this correct?
> >>
> > Actually _data_ packets are never go through the hostapd. Hostapd acts
> > as AP manager: constructs beacon frames, handle client
> > association/authentication process, etc. Data packets travel as usual
> > through the bridging or through the routing kernel subsystem. Wireless
> > stack or driver inside the kernel is responsible for frame format
> > conversion.
> > If you use bridge, then packets go through the following path: wlan2
> > -> (bridge) -> eth0.
> > If your access point act as router, then packets go though then
> > following path: wlan2 -> (IP router) -> eth0.
> > So, if you need capture _data_ traffic from the phone then simply run
> > wireshark on the wlan2 interface.
>
> hostapd may not support it, but there is wlantest which I think could do
> that. Whether that is useful probably depends on what you actually want
> to do with those packets.
>
> Gr. AvS
>
> > --
> > BR,
> > Sergey
> > _______________________________________________
> > HostAP mailing list
> > HostAP at lists.shmoo.com
> > http://lists.shmoo.com/mailman/listinfo/hostap
> >
>
>
>


--=20
Best Regards
--
=C2=B2=B8s Chun Chien
0972-711192
Wireless Internet Research and Engineering Laboratory,
Department of Computer Science, NCTU.

--f46d0401fd91fbbce404d48c80db
Content-Type: text/html; charset=Big5
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks you both for the fast replies. The explanation is v=
ery clear and easy to understand. :)<div>No wonder there are lots of <=
span style=3D"font-family:arial,sans-serif;font-size:17.600000381469727px">=
beacon frames in driver_xxxxx.c</span><br>
<div>I'm using NAT with DHCP so its an IP router in my case.</div>=
<div><br></div><div style>From my understanding, If I were to modify the pa=
ckets from wlan2 to eth0, I should work on the Linux kernel responsible for=
 packets routing. <span style=3D"font-family:arial,sans-serif">Please =
correct me if I'm wrong.</span></div>
<div><div style>Thanks you very much.</div></div><div><br></div><div><br></=
div><div><br></div></div></div><div class=3D"gmail_extra"><br><br><div clas=
s=3D"gmail_quote">2013/1/31 Arend van Spriel <span dir=3D"ltr"><<a href=
=3D"mailto:arend at broadcom.com" target=3D"_blank">arend at broadcom.com</a>>=
</span><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"HOEnZb"><div class=3D"h5">On 0=
1/30/2013 08:34 PM, Sergey Ryazanov wrote:<br>
> 2013/1/30 Chun Chien <<a href=3D"mailto:johnyluyte at gmail.com">johny=
luyte at gmail.com</a>>:<br>
>> I used a Laptop running hostapd, with wired Internet connection et=
h0 and<br>
>> wireless interface wlan2. And I used a android phone to connect to=
 the<br>
>> Internet via hostapd running on the laptop.<br>
>><br>
>> I supposed that the packets sent from the phone to the Internet sh=
ould go<br>
>> through the following path.<br>
>> Phone WiFi interface -> wlan2 of laptop -> Hostapd running o=
n laptop -> eth0<br>
>> of laptop -> The Internet<br>
>> Is this correct?<br>
>><br>
> Actually _data_ packets are never go through the hostapd. Hostapd acts=
<br>
> as AP manager: constructs beacon frames, handle client<br>
> association/authentication process, etc. Data packets travel as usual<=
br>
> through the bridging or through the routing kernel subsystem. Wireless=
<br>
> stack or driver inside the kernel is responsible for frame format<br>
> conversion.<br>
> If you use bridge, then packets go through the following path: wlan2<b=
r>
> -> (bridge) -> eth0.<br>
> If your access point act as router, then packets go though then<br>
> following path: wlan2 -> (IP router) -> eth0.<br>
> So, if you need capture _data_ traffic from the phone then simply run<=
br>
> wireshark on the wlan2 interface.<br>
<br>
</div></div>hostapd may not support it, but there is wlantest which I think=
 could do<br>
that. Whether that is useful probably depends on what you actually want<br>
to do with those packets.<br>
<br>
Gr. AvS<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
> --<br>
> BR,<br>
> Sergey<br>
> _______________________________________________<br>
> HostAP mailing list<br>
> <a href=3D"mailto:HostAP at lists.shmoo.com">HostAP at lists.shmoo.com</a><b=
r>
> <a href=3D"http://lists.shmoo.com/mailman/listinfo/hostap" target=3D"_=
blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
><br>
<br>
<br>
</font></span></blockquote></div><br><br clear=3D"all"><div><br></div>-- <b=
r><div dir=3D"ltr">Best Regards <br>--<br>=C2=B2=B8s Chun Chien<br>0972-711=
192<br>Wireless Internet Research and Engineering Laboratory,<br>Department=
 of Computer Science, NCTU.<br>
</div>
</div>

--f46d0401fd91fbbce404d48c80db--



More information about the Hostap mailing list