]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV4]: Make ip_defrag return the same packet
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 14 Oct 2007 07:38:15 +0000 (00:38 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 15 Oct 2007 19:26:25 +0000 (12:26 -0700)
commit3e825203dcb1a4ad92d9312e95ef38e2041dbdbb
treee581d13cb65d85aecf795783ad0cc1e1452d84d2
parent30b2b5f5a6ad09a9701c22138cb23cc411885123
[IPV4]: Make ip_defrag return the same packet

This patch is a bit of a hack.  However it is worth it if you consider that
this is the only reason why we have to carry around the struct sk_buff **
pointers in netfilter.

It makes ip_defrag always return the packet that was given to it on input.
It does this by cloning the packet and replacing its original contents with
the head fragment if necessary.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_fragment.c