All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] Bridge with a tweak...
@ 2008-10-28 19:07 Mattias Kjellsson
  2008-10-29 13:19 ` richardvoigt
  0 siblings, 1 reply; 2+ messages in thread
From: Mattias Kjellsson @ 2008-10-28 19:07 UTC (permalink / raw)
  To: bridge@lists.linux-foundation.org

Hi list,

I have a question regarding bridges in general, and my bridge in 
particular. I want to take all the packages flowing one way over the 
bridge (say eth0->eth1) and pack them in my own packet- structure (extra 
headers added, and the content modulated for further wireless 
transportation), and all the packages flowing in the other direction 
(say eth1->eth0) needs to be "de- packed" (stripped of my custom 
headers, and demodulated).

What I'm basically doing is trying to make my software radio (connected 
to one of the network- devices) work as a wireless network adapter, but 
with my own signaling- scheme, but I don't want to use the same computer 
for the radio, as for "browsing the web", since the radio- part is a bit 
on the heavy side to the processor.

Is there an easy way to do this? Where would you start? I have been 
looking at the code for the kernel- module, but haven't really got any 
really useful clues from it.

Any pointers towards where to start looking, poking and dragging would 
be greatly appreciated.

BR
Mattias Kjellsson

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bridge] Bridge with a tweak...
  2008-10-28 19:07 [Bridge] Bridge with a tweak Mattias Kjellsson
@ 2008-10-29 13:19 ` richardvoigt
  0 siblings, 0 replies; 2+ messages in thread
From: richardvoigt @ 2008-10-29 13:19 UTC (permalink / raw)
  To: Mattias Kjellsson; +Cc: bridge@lists.linux-foundation.org

On Tue, Oct 28, 2008 at 7:07 PM, Mattias Kjellsson <mkje@kth.se> wrote:
> Hi list,
>
> I have a question regarding bridges in general, and my bridge in
> particular. I want to take all the packages flowing one way over the
> bridge (say eth0->eth1) and pack them in my own packet- structure (extra
> headers added, and the content modulated for further wireless
> transportation), and all the packages flowing in the other direction
> (say eth1->eth0) needs to be "de- packed" (stripped of my custom
> headers, and demodulated).
>
> What I'm basically doing is trying to make my software radio (connected
> to one of the network- devices) work as a wireless network adapter, but
> with my own signaling- scheme, but I don't want to use the same computer
> for the radio, as for "browsing the web", since the radio- part is a bit
> on the heavy side to the processor.
>
> Is there an easy way to do this? Where would you start? I have been
> looking at the code for the kernel- module, but haven't really got any
> really useful clues from it.
>
> Any pointers towards where to start looking, poking and dragging would
> be greatly appreciated.

Yes... you modify the particular interface, not the bridge.  For
example, you can place a tun/tap interface into the bridge (instead of
eth1) to receive all packets passing through the bridge into a
user-mode application.  If you get the user-mode solution fully
working but the performance is not high enough, then you could make a
kernel module.  And the vlan or IP tunneling code would be the best
place to start, since they add and remove headers already.  But
user-mode is much easier both to write and to debug, so start with
tun/tap.

Note that because of the switching code, you'll not get any packets
arriving on your interface besides ARP until you get bidirectional
communications working (well, maybe some broadcast UDP like DHCP
REQUEST).

>
> BR
> Mattias Kjellsson
> _______________________________________________
> Bridge mailing list
> Bridge@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/bridge
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-29 13:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-28 19:07 [Bridge] Bridge with a tweak Mattias Kjellsson
2008-10-29 13:19 ` richardvoigt

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.