All of lore.kernel.org
 help / color / mirror / Atom feed
* Help with BR_POSTROUTING hack
@ 2009-11-29  9:08 Alessio Cimmino
  0 siblings, 0 replies; only message in thread
From: Alessio Cimmino @ 2009-11-29  9:08 UTC (permalink / raw)
  To: netfilter

Helllo.
I need to add a new header between layer 2 and 3 for my own purposes. My 
machines are configured in bridge mode because I need all interfaces for 
load balancing purposes; What I did is just intercept the outgoing 
packet at _BR_POSTROUTING hook to expand socket buffer if needed, shift 
the MAC header up and let my header join.
I changed MTU of netdevice with ifconfig eth0 mtu command.
This way I could handle the new header bytes overhead to not impact with 
the given mtu, which in my case is 1500 for ethernet.

My question is mainly focused on the understanding of the situation in 
the BR_POSTROUTING hook. I would like to understand if at that point the 
CRC32 field of the ethernet formed frame is already written and if I 
have to recompute it and in case, how and where to store it (*(skb->tail)?).
What I experiment is a lot of retrasmissions in a tcp session and 
problems with fragmentation of ip packet in skb_gso_fragment function. I 
know the checksums calculation is done completely via software in case 
of ip fragmentation, but I don't know at that point what do I have to 
(re)compute.
Any help would make me so gratefull. Thanks


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

only message in thread, other threads:[~2009-11-29  9:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-29  9:08 Help with BR_POSTROUTING hack Alessio Cimmino

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.