mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Problem with ebtables target that changes frame protocol
       [not found] <AC8C1F46CD753F4AAC8F890E35A9EB461C66EB@webmail.instant802.com>
@ 2004-02-24 21:47 ` Bart De Schuymer
  0 siblings, 0 replies; only message in thread
From: Bart De Schuymer @ 2004-02-24 21:47 UTC (permalink / raw)
  To: Simon Barber, Kernel Mailing List, netdev

On Monday 23 February 2004 23:41, Simon Barber wrote:
> I have written an ebtables target that changes the ethernet protocol of
> a received frame (it runs in the broute chain). I have been working on
> 2.4.21 sources - Unfortunately inside netif_rx the skb->protocol is
> looked at before the bridge code is called - and then acted upon after.
> Hence if the bridge code changes the protocol the incorrect protocol is
> used to process the frame.

As the variable type is only used after the bridge code, I think it is best to 
postpone the initialization of type until after the bridge code. This is of 
course of no concern to the standard 2.4 kernel (as ebtables isn't in 2.4). 
This problem exists in the 2.6 kernel, however.
I'll make a fix for 2.6 later, unless someone beats me to it. I'm kind of busy 
at the moment.

cheers,
Bart


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-02-24 21:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <AC8C1F46CD753F4AAC8F890E35A9EB461C66EB@webmail.instant802.com>
2004-02-24 21:47 ` Problem with ebtables target that changes frame protocol Bart De Schuymer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®