Getting information from a received packet's header

Varga Dávid duvi
Mon Mar 19 05:11:05 PDT 2007


Thank you for the idea!

Anyway, it won't work for me. I need the card monitoring the packets also to
be able to send.

The protocol I'm trying to implement is the following:
There are two stations connected to the same AP and close to each other. If
there's any traffic between these stations, that would normally go through
the AP, then let's send this traffic directly to the other station.

That's why I need information from all the stations, so the sender can find
out, where it is able to send the packets directly (eg packets received with
high signal ratio).

David

> 
> David you might have another option,
>
> there's a Monitor mode option that should capture all packets, as you
> want, and I think it could allow you to print the headers correctly.
> The problem is that when a Station is in Monitor Mode, it remains silent,
> in sense that it's not an active station sending and receiving packets,
> thus it would not be connected to the AP, I'd say.
>
> You would then need two have two cards, one that connects to the AP and
> generates the traffic, and the other acting as Monitor, capturing the
> packets sent between AP and STA. I think there's currently no way to avoid
> this disassociation.
>
> To enable monitor mode:
> iwconfig wlan0 mode monitor
>
> I'm also exploring this areas, and what I said might not be 100% accurate,
> but it might be worth a trying.
>
>






More information about the Hostap mailing list