mirror of
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
synced 2026-10-13 21:34:34 +00:00
[PR #185] [CLOSED] fix: ipv6_stub usage for kernel 7.x #226
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-linux-kernel-module#226
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/185
Author: @AlexaFrom
Created: 7/8/2026
Status: ❌ Closed
Base:
master← Head:master📝 Commits (2)
60c1bd0socket.h: add forward declarations for kernel 7.x40b04a8socket.c: replace ipv6_stub with ip6_dst_lookup_flow📊 Changes
2 files changed (+6 additions, -2 deletions)
View changed files
📝
src/socket.c(+2 -2)📝
src/socket.h(+4 -0)📄 Description
Problem
On Linux kernels version 7.x and newer, the amneziawg-dkms module fails to build because the
ipv6_stubsymbol has been removed from the public API. This results in the compilation erroripv6_stub undeclaredinsocket.c.What fixed
ipv6_stub->ipv6_dst_lookup_flowcall insocket.cwith a direct call toip6_dst_lookup_flow, which is available whenCONFIG_IPV6=y.#include <net/ip6_route.h>to ensure the function is properly declared.struct wg_device,struct wg_peer, andstruct endpointinsocket.hto resolve type conflicts that occurred after the change.Testing
7.1.3-zen1-1-zen(Arch Linux)CONFIG_IPV6=yawg-quickinterface comes up without errors.#free_internet_for_everyone
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.