diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-01-06 13:35:16 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-01-06 13:35:16 +0000 |
commit | 51135e37edff6e0cf928fababe1b27c6c48c1087 (patch) | |
tree | 3a0d63ce00661fecb5ae6a0395ef05ba6b1560db /sys/src/9 | |
parent | 6cbcac7382b847ed824a471402702fbae7ad9004 (diff) |
> 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.
Diffstat (limited to 'sys/src/9')
-rw-r--r-- | sys/src/9/ip/gre.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); /* |