diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2021-08-27 08:14:35 +0000 |
---|---|---|
committer | Koichiro Iwao <meta@FreeBSD.org> | 2022-10-19 03:29:39 +0000 |
commit | a0e9703f57cb2ba2bcf8a765f42f8fe702a3cca8 (patch) | |
tree | fc475673d44d00c466a2cbc4cd07a7583e747642 | |
parent | 57d42454e143a8ea6f34ab94dec8e6313529e43f (diff) | |
download | src-a0e9703f57cb2ba2bcf8a765f42f8fe702a3cca8.tar.gz src-a0e9703f57cb2ba2bcf8a765f42f8fe702a3cca8.zip |
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)
-rw-r--r-- | sys/netinet6/in6_proto.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c index b5270394d9f3..43d99e484fb8 100644 --- a/sys/netinet6/in6_proto.c +++ b/sys/netinet6/in6_proto.c @@ -298,6 +298,15 @@ struct protosw inet6sw[] = { { .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, .pr_protocol = IPPROTO_GRE, .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR, .pr_input = encap6_input, |