瀏覽代碼

gre: When GRE csum is present count as encap layer wrt csum

In GRE demux if the GRE checksum pop rcv encapsulation so that any
encapsulated checksums are treated as tunnel checksums.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Tom Herbert 11 年之前
父節點
當前提交
48a5fc7731
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      net/ipv4/gre_demux.c

+ 1 - 0
net/ipv4/gre_demux.c

@@ -125,6 +125,7 @@ static int parse_gre_header(struct sk_buff *skb, struct tnl_ptk_info *tpi,
 			*csum_err = true;
 			*csum_err = true;
 			return -EINVAL;
 			return -EINVAL;
 		}
 		}
+		skb_pop_rcv_encapsulation(skb);
 		options++;
 		options++;
 	}
 	}