Skip to content

Commit 239c78d

Browse files
strssndktndavem330
authored andcommitted
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>
1 parent 7f2cbdc commit 239c78d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/core/skbuff.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3584,6 +3584,7 @@ void skb_scrub_packet(struct sk_buff *skb, bool xnet)
35843584
skb->tstamp.tv64 = 0;
35853585
skb->pkt_type = PACKET_HOST;
35863586
skb->skb_iif = 0;
3587+
skb->local_df = 0;
35873588
skb_dst_drop(skb);
35883589
skb->mark = 0;
35893590
secpath_reset(skb);

0 commit comments

Comments
 (0)