aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/vrf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c
index 5b995c43bff1..3cb35881dfda 100644
--- a/drivers/net/vrf.c
+++ b/drivers/net/vrf.c
@@ -371,6 +371,8 @@ static int vrf_finish_output6(struct net *net, struct sock *sk,
371 struct in6_addr *nexthop; 371 struct in6_addr *nexthop;
372 int ret; 372 int ret;
373 373
374 nf_reset(skb);
375
374 skb->protocol = htons(ETH_P_IPV6); 376 skb->protocol = htons(ETH_P_IPV6);
375 skb->dev = dev; 377 skb->dev = dev;
376 378
@@ -552,6 +554,8 @@ static int vrf_finish_output(struct net *net, struct sock *sk, struct sk_buff *s
552 u32 nexthop; 554 u32 nexthop;
553 int ret = -EINVAL; 555 int ret = -EINVAL;
554 556
557 nf_reset(skb);
558
555 /* Be paranoid, rather than too clever. */ 559 /* Be paranoid, rather than too clever. */
556 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { 560 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) {
557 struct sk_buff *skb2; 561 struct sk_buff *skb2;