diff options
Diffstat (limited to 'net/ipv6/ip6_gre.c')
-rw-r--r-- | net/ipv6/ip6_gre.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c index f37f18b6b40c..c0d4dc1c5ea4 100644 --- a/net/ipv6/ip6_gre.c +++ b/net/ipv6/ip6_gre.c | |||
@@ -777,6 +777,8 @@ static inline int ip6gre_xmit_ipv4(struct sk_buff *skb, struct net_device *dev) | |||
777 | __u32 mtu; | 777 | __u32 mtu; |
778 | int err; | 778 | int err; |
779 | 779 | ||
780 | memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); | ||
781 | |||
780 | if (!(t->parms.flags & IP6_TNL_F_IGN_ENCAP_LIMIT)) | 782 | if (!(t->parms.flags & IP6_TNL_F_IGN_ENCAP_LIMIT)) |
781 | encap_limit = t->parms.encap_limit; | 783 | encap_limit = t->parms.encap_limit; |
782 | 784 | ||
@@ -1512,6 +1514,7 @@ static void ip6gre_tap_setup(struct net_device *dev) | |||
1512 | dev->destructor = ip6gre_dev_free; | 1514 | dev->destructor = ip6gre_dev_free; |
1513 | 1515 | ||
1514 | dev->features |= NETIF_F_NETNS_LOCAL; | 1516 | dev->features |= NETIF_F_NETNS_LOCAL; |
1517 | dev->priv_flags &= ~IFF_TX_SKB_SHARING; | ||
1515 | } | 1518 | } |
1516 | 1519 | ||
1517 | static int ip6gre_newlink(struct net *src_net, struct net_device *dev, | 1520 | static int ip6gre_newlink(struct net *src_net, struct net_device *dev, |