gre: Fix wrong tpi->proto in WCCP
When dealing with WCCP in gre6 tunnel, it sets the wrong tpi->protocol, that is, ETH_P_IP instead of ETH_P_IPV6 for the encapuslated traffic. Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
23f72215bc
commit
da73b4e953
@@ -468,7 +468,7 @@ static int gre_rcv(struct sk_buff *skb)
|
||||
bool csum_err = false;
|
||||
int hdr_len;
|
||||
|
||||
hdr_len = gre_parse_header(skb, &tpi, &csum_err);
|
||||
hdr_len = gre_parse_header(skb, &tpi, &csum_err, htons(ETH_P_IPV6));
|
||||
if (hdr_len < 0)
|
||||
goto drop;
|
||||
|
||||
|
Reference in New Issue
Block a user