From 51135e37edff6e0cf928fababe1b27c6c48c1087 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Fri, 6 Jan 2023 13:35:16 +0000 Subject: > the retunnel logic in the gre code is wrong. > It gets applied to any protocol type that is not pptp > but should only process encapsulated ip4 packets. --- sys/src/9/ip/gre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src/9') diff --git a/sys/src/9/ip/gre.c b/sys/src/9/ip/gre.c index 80c3fb8dd..3bb16937a 100644 --- a/sys/src/9/ip/gre.c +++ b/sys/src/9/ip/gre.c @@ -560,7 +560,7 @@ greiput(Proto *proto, Ipifc *, Block *bp) qlock(proto); - if(eproto != 0x880B && BLEN(bp) - hdrlen >= sizeof(Ip4hdr)){ + if(eproto == 0x0800 && BLEN(bp) - hdrlen >= sizeof(Ip4hdr)){ ip = (Ip4hdr *)(bp->rp + hdrlen); /* -- cgit v1.2.3