[Bug 284459] if_ovpn: Undefined symbol "in6_sin6_2_sin_in_sock" if IPv6 support is disabled
Date: Thu, 30 Jan 2025 09:32:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284459
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 causes
the error.
if (peer->local.ss_family == 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.
--
You are receiving this mail because:
You are the assignee for the bug.