[...] + 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!
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(+)
Perfect! I can confirm efeb80031170 fixes build w/o INET / INET6. Thank you for the quick action!
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(+)