Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Oct 2022 03:24:14 GMT
From:      Koichiro Iwao <meta@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 3b1dbf19f9c0 - stable/13 - inet6(4): add a missing IPPROTO_ETHERIP entry
Message-ID:  <202210190324.29J3OESQ094013@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by meta (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=3b1dbf19f9c051a325774ba5c0d7cc460cc82c7f

commit 3b1dbf19f9c051a325774ba5c0d7cc460cc82c7f
Author:     Hiroki Sato <hrs@FreeBSD.org>
AuthorDate: 2021-08-27 08:14:35 +0000
Commit:     Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2022-10-19 03:23:16 +0000

    inet6(4): add a missing IPPROTO_ETHERIP entry
    
    bridge(4) + gif(4) did not work when the outer protocol was IPv6.
    
    Submitted by:   Masahiro Kozuka
    PR:             256820
    
    Approved by:    hps (to cherry-pick)
    
    (cherry picked from commit 9823a0c0acf4fc277a71336ea737e1de7c65742f)
---
 sys/netinet6/in6_proto.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c
index 21b7d660676f..fb4f76dd698c 100644
--- a/sys/netinet6/in6_proto.c
+++ b/sys/netinet6/in6_proto.c
@@ -291,6 +291,15 @@ struct protosw inet6sw[] = {
 	.pr_ctloutput =		rip6_ctloutput,
 	.pr_usrreqs =		&rip6_usrreqs
 },
+{
+	.pr_type =		SOCK_RAW,
+	.pr_domain =		&inet6domain,
+	.pr_protocol =		IPPROTO_ETHERIP,
+	.pr_flags =		PR_ATOMIC|PR_ADDR|PR_LASTHDR,
+	.pr_input =		encap6_input,
+	.pr_ctloutput =		rip6_ctloutput,
+	.pr_usrreqs =		&rip6_usrreqs
+},
 {
 	.pr_type =		SOCK_RAW,
 	.pr_domain =		&inet6domain,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210190324.29J3OESQ094013>