Re: --resend-on-iif status

Karel Rericha <[email protected]>
Newsgroups gmane.linux.network.bridge.ebtables.devel
Message-ID <[email protected]>
Bart De Schuymer wrote:

> On Friday 04 June 2004 20:16, Stephen Hemminger wrote:
>  
>
>> Rather than hacking the bridge code and risking routing loops and other
>> nasty's, why not change the wireless driver to have a "reflect all 
>> packets"
>> flag?
>>   
>
>
> Some devices which appear as one single interface to Linux are really 
> some kind of (wireless?) bridge with many ports. If I understood 
> correctly, more control over what this hardware forwards is wanted. 
> The hardware can be made to give the packets to Linux instead of 
> bridging them, but after Linux has played with the packets, they 
> should go back to that hardware. A way to do this is make a bridge 
> port out of this interface and force the bridge code to deliver the 
> packets back to the input bridge port.
> AFAIK the requested functionality (being able to filter, tc, etc. the 
> packets) can't be implemented by only altering the driver code.
>
> cheers,
> Bart
>
>  
>
That's it ! You have to get packets out of driver, even when they are 
destined for stations on same medium,
then "play with them" (which is shape traffic in my case), and allow 
bridge code to send these packets back
to same interface they were originated from. Well actually playing with 
them in the case of shaping occures
after sending them back, but that's not important for understanding of 
the meaning.

So if I'm right, drivers for such devices (read wireless soft aps, but 
it can be anything else), needs some
mechanism to change forwarding internal in-between stations packets, 
which are normally not visible for
Linux network code, out of driver to Linux network code. Hostap driver 
already has such mechanism,
see "bridge_packets 0" option.

Next, bridge-nf needs option to allow forwarding these packets back.

Cheers, Karel.



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.