Skip to contentSkip to conversation

Bridge for linux

Bridge Stephen Hemminger 2 participants 2 messages Jul 31, 2004 1 message not in the archive Ethernet bridge

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 11 lines · On Fri, 30 Jul 2004 22:27:43 +0200 Xavier Van Laethem <[email protected]>…
Quoted 2 lines

From FAQ

------------------------------------------------------
It doesn't work with my Wireless card!

This is a known problem, and it is not caused by the bridge code. Many wireless cards don't allow spoofing of the source address. It is a firmware restriction with some chipsets. You might find some information in the bridge mailing list archives to help.
------------------------------------------------------

Quoted 7 lines

Trying with hostap driver for wifi card. It work when wifi card is in master mode but it is no more working with wifi card in managed or ad-hoc mode. So y try changing hardfware (ethernet) address of the wireless card (using the one of bridge interface) with "ip link set wlan0 address..." and it seems to work well... (it should also work with "ifconfig..." but y an using the one comming from busybox and it doesn't allow to change hw address)
y dont find any such solution in the mailing list....

It seems that hostap doesn't provide the same interface as normal ethernet card. One problem is that it doesn't forward packets between nodes connected to the same access point. These are hostap problems, and should be fixed there, the bridge code shouldn't need to have special code for the hostap devices.

Quoted 4 lines

By the way, why is the hardware address of the bridge chanching at each interface added to the bridge? Solution would be simpler if the bridge keep hardware addres of the first interface added, and by adding wireless interface first, no?

Probably just a stupid day one coding bug.. The problem is what if the first interface goes away?

Quoted 1 line

Xavier Van Laethem

#2 lore raw

Stephen Hemminger napsal(a):

Quoted 17 lines
Quoted 11 lines · On Fri, 30 Jul 2004 22:27:43 +0200 Xavier Van Laethem <[email protected]>…
Quoted 1 line

From FAQ

------------------------------------------------------
It doesn't work with my Wireless card!

This is a known problem, and it is not caused by the bridge code. Many wireless cards don't allow spoofing of the source address. It is a firmware restriction with some chipsets. You might find some information in the bridge mailing list archives to help.
------------------------------------------------------

Trying with hostap driver for wifi card. It work when wifi card is in master mode but it is no more working with wifi card in managed or ad-hoc mode. So y try changing hardfware (ethernet) address of the wireless card (using the one of bridge interface) with "ip link set wlan0 address..." and it seems to work well... (it should also work with "ifconfig..." but y an using the one comming from busybox and it doesn't allow to change hw address) y dont find any such solution in the mailing list....

Quoted 6 lines

It seems that hostap doesn't provide the same interface as normal ethernet card. One problem is that it doesn't forward packets between nodes connected to the same access point. These are hostap problems, and should be fixed there, the bridge code shouldn't need to have special code for the hostap devices.

Hostap in master mode does forward packets between stations connected to the same access point. This is default behaviour. But alas, not always welcome (read "traffic shaping"). It can be switched of by iwpriv wlan0 bridge_packets 0
but after that no packets sourced from wlan0 arrive back to wlan0 if this is bridged interface. Bridge code doesn't allow this, even if these packets are destined to stations connected to hostap. Stephen some time ago suggested implementing "layered" hostap driver to overcome this, but I don't know what does it mean.

Quoted 22 lines
Quoted 5 lines

By the way, why is the hardware address of the bridge chanching at each interface added to the bridge? Solution would be simpler if the bridge keep hardware addres of the first interface added, and by adding wireless interface first, no?

Probably just a stupid day one coding bug.. The problem is what if the first interface goes away?

Quoted 11 lines

Xavier Van Laethem

------------------------------------------------------------------------

_______________________________________________
Bridge mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/bridge