Bug 269787

Summary: d2deebe21b59 breaks kernel without INET6
Product: Base System Reporter: Michael Paepcke <bugs.fbsd>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Some People CC: melifaro
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

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(+)