diff options
author | Haishuang Yan <yanhaishuang@cmss.chinamobile.com> | 2016-05-21 18:17:35 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-24 14:33:48 -0700 |
commit | 252f3f5a1189a7f6c309d8e4ff1c4c1888a27f13 (patch) | |
tree | 5e1da3ecfe60364e6234db8b4b55e1e9480beba7 | |
parent | 1b227e536662eae4b7beee3037edbecdc577495f (diff) | |
download | linux-stable-252f3f5a1189a7f6c309d8e4ff1c4c1888a27f13.tar.gz linux-stable-252f3f5a1189a7f6c309d8e4ff1c4c1888a27f13.tar.bz2 linux-stable-252f3f5a1189a7f6c309d8e4ff1c4c1888a27f13.zip |
ip6_gre: Set flowi6_proto as IPPROTO_GRE in xmit path.
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>
-rw-r--r-- | net/ipv6/ip6_gre.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c index a6fe3397728c..f4ac2842d4d9 100644 --- a/net/ipv6/ip6_gre.c +++ b/net/ipv6/ip6_gre.c @@ -712,6 +712,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; |