From: Simon Barber <simon@superduper.net>
To: Umar Qureshey <umar.qureshey@lantronix.com>
Cc: bridge@lists.linux-foundation.org
Subject: Re: [Bridge] Hardware requirements for bridging wired+wireless together
Date: Wed, 19 May 2010 16:02:57 -0700 [thread overview]
Message-ID: <4BF46E21.9050000@superduper.net> (raw)
In-Reply-To: <F24C979D1AFD4E4292B911441CBA242407FCC9@2putt.int.lantronix.com>
Unfortunately the concept of a native 802.11 interface got removed from
the kernel a few months ago. This is a great shame, since it means that
it's now impossible to write qdiscs that work correctly for WiFi when
using 802.11's own priority mechanisms as well. The wlan0 interface is a
virtual interface that works with 802.3 format frames.
Simon
On 05/19/2010 02:01 PM, Umar Qureshey wrote:
>>> -----Original Message-----
>>> From: John W. Linville [mailto:linville@tuxdriver.com]
>>> Sent: Wednesday, May 19, 2010 12:20 PM
>>> To: Umar Qureshey
>>> Cc: Stephen Hemminger; bridge@lists.linux-foundation.org
>>> Subject: Re: [Bridge] Hardware requirements for bridging
> wired+wireless together
>>>
>>> On Wed, May 19, 2010 at 10:15:35AM -0700, Umar Qureshey wrote:
>>>
>>>> What about bridging in Ad-Hoc mode? Would that technically work?
>>>
>>> No.
>>>
>>>> I guess what I am trying to figure out is why bridging would work
> in WDS mode? What is it about that mode that allows bridging to work?
>>>
>>> It has to do with the MAC-layer addressing on wireless LANs.
> Wireless
>>> frames can use 2, 3, or 4 MAC addresses to identify the transmitter,
>>> receiver, sender, and destination. For most frames and most modes,
>>> 3 MAC addresses are used. The FromDS and ToDS bits in the header
>>> are used to allow one of the MAC address fields to specify either
>>> the transmitter and sender or the destination and receiver. This is
>>> sufficient for non-bridged cases since the wireless station is either
>>> an endpoint of the communication or possibly a router (and therefore
>>> a Layer-2 endpoint).
>>>
>>> WDS (or 4 address) mode removes this limitation by using 4 MAC
>>> addresses to identify all 4 roles independently. So, the wireless
>>> station is able to forward frames received off the air to the
>>> appropriate destination with the correct sender information intact.
>>>
>>> mac80211-based devices can have interfaces created with support for
>>> 4 address mode using the iw command. For this to work, your AP has
>>> to be willing to accept and forward those frames appropriately --
>>> some do, others don't. This is only supported for "managed" mode
>>> interfaces AFAIK.
>>>
>>>> If one were to try to modify the kernel code to allow MAC-level
> NAT, which area of the kernel code would one look at?
>>>
>>> netfilter -- I thought there was already some ebtables code to
>>> do this...?
>>>
>>> John
>>> --
>>> John W. Linville Someday the world will need a hero, and
> you
>>> linville@tuxdriver.com might be all we have.
> Be ready.
>
> Ok thanks for the explanation about WDS.
>
> Stepping back into a Linux box with two interfaces, one Ethernet (eth0)
> and one wireless 802.11 (wlan0), and one bridge (br0) that bridges these
> two interfaces together:
>
>
> br0
> |
> eth0-------+-------wlan0
>
> Can one say that, in this case, the bridge is not working because br0 is
> passing to wlan0 Ethernet 802.3 frames which (naturally) the wlan0
> interface has no idea how to decode?
>
>
> **********************************************************************
> This e-mail is the property of Lantronix. It is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential, or otherwise protected from disclosure. Distribution or copying of this e-mail, or the information contained herein, to anyone other than the intended recipient is prohibited.
> _______________________________________________
> Bridge mailing list
> Bridge@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/bridge
prev parent reply other threads:[~2010-05-19 23:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-17 20:17 [Bridge] Hardware requirements for bridging wired+wireless together Umar Qureshey
2010-05-18 19:32 ` Nicolas de Pesloüan
2010-05-18 23:38 ` Umar Qureshey
2010-05-18 23:51 ` Stephen Hemminger
2010-05-19 17:15 ` Umar Qureshey
2010-05-19 19:20 ` John W. Linville
2010-05-19 20:59 ` Simon Barber
2010-05-19 21:08 ` Umar Qureshey
2010-05-19 22:55 ` Simon Barber
2010-05-19 21:01 ` Umar Qureshey
2010-05-19 23:02 ` Simon Barber [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BF46E21.9050000@superduper.net \
--to=simon@superduper.net \
--cc=bridge@lists.linux-foundation.org \
--cc=umar.qureshey@lantronix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.