Bug 256820 - netinet6: etherip over ipv6 doesn't work
Summary: netinet6: etherip over ipv6 doesn't work
Status: In Progress
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Many People
Assignee: Hiroki Sato
Keywords: ipv6
Depends on:
Reported: 2021-06-25 03:43 UTC by Masahiro Kozuka
Modified: 2021-08-29 02:00 UTC (History)
4 users (show)

See Also:
koobs: mfc-stable13?
koobs: mfc-stable12?
koobs: mfc-stable11?


Note You need to log in before you can comment on or make changes to this bug.
Description Masahiro Kozuka 2021-06-25 03:43:20 UTC
I've found that encap6_input() is not registered for IPPROTO_ETHERIP and that bridge(4) and gif(4) will not work over an IPv6-IPv6 tunnel. So, I've tried to add below code and found that etherip over ipv6 will work after this fix.

Comment 1 Hiroki Sato freebsd_committer 2021-06-25 04:22:50 UTC
Comment 2 commit-hook freebsd_committer 2021-08-27 08:15:44 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=9823a0c0acf4fc277a71336ea737e1de7c65742f

commit 9823a0c0acf4fc277a71336ea737e1de7c65742f
Author:     Hiroki Sato <hrs@FreeBSD.org>
AuthorDate: 2021-08-27 08:14:35 +0000
Commit:     Hiroki Sato <hrs@FreeBSD.org>
CommitDate: 2021-08-27 08:14:35 +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
    MFC after:      3 days

 sys/netinet6/in6_proto.c | 9 +++++++++
 1 file changed, 9 insertions(+)
Comment 3 Hiroki Sato freebsd_committer 2021-08-27 08:19:36 UTC
This will be merged into stable branches.