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:23:16 +0000 |
commit | 3b1dbf19f9c051a325774ba5c0d7cc460cc82c7f (patch) | |
tree | 154ba11002558008ebc1a9273c5fff1860fa164b | |
parent | bd3d597a6bc0e35273669cfd7a99b3a5b437d92a (diff) | |
download | src-3b1dbf19f9c051a325774ba5c0d7cc460cc82c7f.tar.gz src-3b1dbf19f9c051a325774ba5c0d7cc460cc82c7f.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 21b7d660676f..fb4f76dd698c 100644 --- a/sys/netinet6/in6_proto.c +++ b/sys/netinet6/in6_proto.c @@ -294,6 +294,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, |