]> git.hungrycats.org Git - linux/commitdiff
ip6_gre: Set flowi6_proto as IPPROTO_GRE in xmit path.
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Sat, 21 May 2016 10:17:35 +0000 (18:17 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 Nov 2016 01:17:35 +0000 (01:17 +0000)
commit 252f3f5a1189a7f6c309d8e4ff1c4c1888a27f13 upstream.

In gre6 xmit path, we are sending a GRE packet, so set fl6 proto
to IPPROTO_GRE properly.

Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/ipv6/ip6_gre.c

index 1ee013644bb2a34cb4585a7a395e38e5771bcda8..6df94c1053cb6131e7cef8003bd5c17af2bf08af 100644 (file)
@@ -939,6 +939,7 @@ static void ip6gre_tnl_link_config(struct ip6_tnl *t, int set_mtu)
        fl6->daddr = p->raddr;
        fl6->flowi6_oif = p->link;
        fl6->flowlabel = 0;
+       fl6->flowi6_proto = IPPROTO_GRE;
 
        if (!(p->flags&IP6_TNL_F_USE_ORIG_TCLASS))
                fl6->flowlabel |= IPV6_TCLASS_MASK & p->flowinfo;