From: Arne Meyer <meyer.arne83@netcologne.de>
To: "9front@9front.org" <9front@9front.org>
Subject: [9front] [patch] fix gre retunnel logic
Date: Thu, 5 Jan 2023 21:28:56 +0100 (CET) [thread overview]
Message-ID: <1812548913.1765433.1672950536273@comcenter.netcologne.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 242 bytes --]
Hello,
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. With this patch I got my userspace ethernet over gre tunnel to work.
Greetings,
Arne
[-- Attachment #2: gre.patch --]
[-- Type: application/octet-stream, Size: 319 bytes --]
diff c10be29c773737c4159b613f4f6c3b5a90d732f6 uncommitted
--- a/sys/src/9/ip/gre.c
+++ b/sys/src/9/ip/gre.c
@@ -560,7 +560,7 @@
qlock(proto);
- if(eproto != 0x880B && BLEN(bp) - hdrlen >= sizeof(Ip4hdr)){
+ if(eproto == 0x0800 && BLEN(bp) - hdrlen >= sizeof(Ip4hdr)){
ip = (Ip4hdr *)(bp->rp + hdrlen);
/*
next reply other threads:[~2023-01-05 20:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-05 20:28 Arne Meyer [this message]
2023-01-06 13:35 ` cinap_lenrek
2023-01-07 2:23 ` cinap_lenrek
2023-01-13 16:56 ` Arne Meyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1812548913.1765433.1672950536273@comcenter.netcologne.de \
--to=meyer.arne83@netcologne.de \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).