Bug 269787 - d2deebe21b59 breaks kernel without INET6
Summary: d2deebe21b59 breaks kernel without INET6
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-23 20:00 UTC by Michael Paepcke
Modified: 2023-02-27 10:36 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Paepcke 2023-02-23 20:00:04 UTC
[...]
+	case AF_INET6:
+		nh->gw6_sa.sin6_family = AF_INET6;
+		nh->gw6_sa.sin6_len = sizeof(struct sockaddr_in6);
+		nh->gw6_sa.sin6_addr = in6addr_loopback;
[...]

needs some ifdef guarding.

Thank you!
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-02-24 10:22:12 UTC
A commit in branch main references this bug:

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

commit efeb8003117073d29bf82c8a69e036b8dbd78352
Author:     Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2023-02-24 10:19:12 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2023-02-24 10:21:06 +0000

    netlink: fix NOINET6 build.

    Reported by:    Michael Paepcke <bugs.fbsd@paepcke.de>
    PR:             269787
    MFC after:      3 days

 sys/net/route/nhop_ctl.c | 4 ++++
 1 file changed, 4 insertions(+)
Comment 2 Michael Paepcke 2023-02-24 10:27:36 UTC
Perfect!

I can confirm efeb80031170 fixes build w/o INET / INET6.

Thank you for the quick action!
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-02-27 10:36:51 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=7af6e00d62f3ba75c91146015724b44a05567efe

commit 7af6e00d62f3ba75c91146015724b44a05567efe
Author:     Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2023-02-24 10:19:12 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2023-02-27 10:29:53 +0000

    netlink: fix NOINET6 build.

    Reported by:    Michael Paepcke <bugs.fbsd@paepcke.de>
    PR:             269787
    MFC after:      3 days

    (cherry picked from commit efeb8003117073d29bf82c8a69e036b8dbd78352)

 sys/net/route/nhop_ctl.c | 4 ++++
 1 file changed, 4 insertions(+)