Date: Thu, 30 Jan 2025 09:32:28 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 284459] if_ovpn: Undefined symbol "in6_sin6_2_sin_in_sock" if IPv6 support is disabled Message-ID: <bug-284459-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284459 Bug ID: 284459 Summary: if_ovpn: Undefined symbol "in6_sin6_2_sin_in_sock" if IPv6 support is disabled Product: Base System Version: 14.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: kwf@nanoteq.com A kernel compiled without IPv6 support does cannot load if_ovpn.ko as it requires does not cater of IPv6 mapped addresses from IPv4. Specifically, these lines are not defined for only INET6 support, which cau= ses the error.=20 if (peer->local.ss_family =3D=3D AF_INET6 && IN6_IS_ADDR_V4MAPPED(&TO_IN6(&peer->remote)->sin6_addr)) { /* V4 mapped address, so treat this as v4, not v6. */ in6_sin6_2_sin_in_sock((struct sockaddr *)&peer->local); in6_sin6_2_sin_in_sock((struct sockaddr *)&peer->remote); } My suggestion is to move the #ifdef INET6 before this logic. Note: This issue is also present on the main branch. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-284459-227>