Customize bridge code to set transmit interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/bridge

[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux