]> Pileus Git - ~andy/linux/blobdiff - net/ipv6/ip6_tunnel.c
skb: allow skb_scrub_packet() to be used by tunnels
[~andy/linux] / net / ipv6 / ip6_tunnel.c
index d6e00a39274c4d62401b08fd7142338c8fb10c8d..72372ac90159b63206d0986ec7a81f1c0f4a9987 100644 (file)
@@ -830,7 +830,7 @@ static int ip6_tnl_rcv(struct sk_buff *skb, __u16 protocol,
                tstats->rx_bytes += skb->len;
 
                if (!net_eq(t->net, dev_net(t->dev)))
-                       skb_scrub_packet(skb);
+                       skb_scrub_packet(skb, true);
 
                netif_rx(skb);
 
@@ -1002,7 +1002,7 @@ static int ip6_tnl_xmit2(struct sk_buff *skb,
        }
 
        if (!net_eq(t->net, dev_net(dev)))
-               skb_scrub_packet(skb);
+               skb_scrub_packet(skb, true);
 
        /*
         * Okay, now see if we can stuff it in the buffer as-is.