mirror of
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
synced 2026-10-13 21:34:34 +00:00
[PR #269] Fix setup_udp_tunnel_sock compilation error for Linux kernel >= 7.0 #269
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#269
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/269
Author: @LAG-Lagendary
Created: 10/13/2026
Status: 🔄 Open
Base:
master← Head:fix-kernel-7-build📝 Commits (1)
541d783Fix setup_udp_tunnel_sock macro compatibility for Linux kernel 7.0📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
src/compat/compat.h(+4 -0)📄 Description
Issue:
DKMS module fails to build on Ubuntu Linux kernel 7.0.0 due to an incompatible pointer type in setup_udp_tunnel_sock. The function signature has been backported/updated in 7.0 to expect struct sock * instead of struct socket *, but udp_tunnel_sock_release still expects struct socket *.
Fix:
Updated src/compat/compat.h to stop redefining setup_udp_tunnel_sock for kernels >= 7.0.0, while keeping the redefinition for udp_tunnel_sock_release intact.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.