]> git.baikalelectronics.ru Git - kernel.git/commit
net: clear local_df when passing skb between namespaces
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Thu, 5 Dec 2013 22:29:19 +0000 (23:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Dec 2013 04:42:38 +0000 (23:42 -0500)
commit766a22e249e60e9bbe3b3c515684f203d1e9e782
treea6077165590afb1b2b2ed70d2b883ff67f2e8585
parentc7a66408e89863aa134dd0b7a100ed9315d8f6af
net: clear local_df when passing skb between namespaces

We must clear local_df when passing the skb between namespaces as the
packet is not local to the new namespace any more and thus may not get
fragmented by local rules. Fred Templin noticed that other namespaces
do fragment IPv6 packets while forwarding. Instead they should have send
back a PTB.

The same problem should be present when forwarding DF-IPv4 packets
between namespaces.

Reported-by: Templin, Fred L <Fred.L.Templin@boeing.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c