Skip to content

Commit d27bff9

Browse files
tomratbertdavem330
authored andcommitted
ip6_gre: Set inner protocol correctly in __gre6_xmit
Need to use adjusted protocol value for setting inner protocol. Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f41fe3c commit d27bff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/ip6_gre.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ static netdev_tx_t __gre6_xmit(struct sk_buff *skb,
519519
gre_build_header(skb, tunnel->tun_hlen, tunnel->parms.o_flags,
520520
protocol, tunnel->parms.o_key, htonl(tunnel->o_seqno));
521521

522-
skb_set_inner_protocol(skb, proto);
522+
skb_set_inner_protocol(skb, protocol);
523523

524524
return ip6_tnl_xmit(skb, dev, dsfield, fl6, encap_limit, pmtu,
525525
NEXTHDR_GRE);

0 commit comments

Comments
 (0)