diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2021-08-27 08:14:35 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2021-08-27 08:14:35 +0000 |
commit | 9823a0c0acf4fc277a71336ea737e1de7c65742f (patch) | |
tree | 5b31d2bd806d52e71294995d4bc157e10f308fbc | |
parent | bb958dcf3d8af3a033dacbf8133681c9b0c73b2f (diff) | |
download | src-9823a0c0acf4fc277a71336ea737e1de7c65742f.tar.gz src-9823a0c0acf4fc277a71336ea737e1de7c65742f.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
MFC after: 3 days
-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 56ef41a27e88..909564b8c7e5 100644 --- a/sys/netinet6/in6_proto.c +++ b/sys/netinet6/in6_proto.c @@ -296,6 +296,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, |