From: Alessio Cimmino <rainmaker85@libero.it>
To: netfilter@vger.kernel.org
Subject: Help with BR_POSTROUTING hack
Date: Sun, 29 Nov 2009 10:08:57 +0100 [thread overview]
Message-ID: <4B123A29.6060904@libero.it> (raw)
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
reply other threads:[~2009-11-29 9:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4B123A29.6060904@libero.it \
--to=rainmaker85@libero.it \
--cc=netfilter@vger.kernel.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 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.