Ethernet Bridge development
 help / color / mirror / Atom feed
From: Steve Lazaridis <slaz@fortresstech.com>
Cc: bridge@lists.linux-foundation.org
Subject: Re: [Bridge] Customize bridge code to set transmit interface
Date: Thu, 21 Jun 2007 16:17:46 -0400	[thread overview]
Message-ID: <467ADCEA.4010503@fortresstech.com> (raw)
In-Reply-To: <200706211851.l5LIpEP8018352@smtp2.linux-foundation.org>

Write a driver that hooks into the bridge code.
Drop incoming frames on ath0
Drop outgoing frames from ath1
Allow the rest.

Netfilter provides you the hook API to do this without having to hack
device.c or any other main kernel code.

Or just use ebtables and setup some rules to do that :)


Of course, you'll still receive packets on the radio, but you just won't
process them through the bridge stack.

If you want to do this type of filtering at the radio level you should
be hacking your atheros driver instead.


Regards,
Steve



Hasan Rashid wrote:
> I am trying to modify the bridge code so I can define what interfaces to
> transmit data through. I added a function in brctl CLI to accept the
> interface name as an argument.
> 
>  
> 
> For example:
> 
>  
> 
> brctl settransmit br0 ath0
> 
>  
> 
> Basically this is for an embedded device where I have two radios on the
> device. I want to send all the outgoing traffic through ath0 (radio 1)
> and use the other radio for receving ath1 (radio 2).
> 
>  
> 
> I am trying to load the net_bridge_port from the ifindex and set that as
> the port for the *skb->dev->br_port in br_device.c in function
> br_dev_xmit. No real success so far.
> 
>  
> 
> Any ideas on how this could be accomplished?
> 
>  
> 
> Thank you!
> 
>  
> 
> Regards,
> 
> *Hasan Rashid*
> 
> Software Developer
> 
>  
> 
> //Digital Path, Inc//////
> 
> 275 Airpark Blvd suite 500
> 
> Chico, CA 95973
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Bridge mailing list
> Bridge@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/bridge

      reply	other threads:[~2007-06-21 20:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-21 18:51 [Bridge] Customize bridge code to set transmit interface Hasan Rashid
2007-06-21 20:17 ` Steve Lazaridis [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=467ADCEA.4010503@fortresstech.com \
    --to=slaz@fortresstech.com \
    --cc=bridge@lists.linux-foundation.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox