[PR #184] compat: use ip6_dst_lookup_flow on kernels >= 7.1 #223

Open
opened 2026-10-13 21:07:46 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/184
Author: @XOlegator
Created: 7/7/2026
Status: 🔄 Open

Base: master ← Head: fix/fedora44-kernel-7-1-ipv6-lookup-safe


📝 Commits (2)

  • f4f2c92 compat: use ip6_dst_lookup_flow on kernels >= 7.1
  • 3bf15c5 compat: handle Fedora 44 kernel 7.1 socket and timer API changes

📊 Changes

3 files changed (+30 additions, -12 deletions)

View changed files

📝 src/compat/compat.h (+7 -5)
📝 src/socket.c (+17 -2)
📝 src/timers.c (+6 -5)

📄 Description

Fix IPv6 route lookup on kernels >= 7.1 without changing older-kernel behavior

This keeps the existing ipv6_stub->ipv6_dst_lookup_flow(...) path for older kernels and adds a compat wrapper for kernels >= 7.1, where it switches to ip6_dst_lookup_flow(...).

Why:

  • DKMS build failed on Fedora 44 with kernel 7.1.3-200.fc44.x86_64
  • failure was:
    error: ‘ipv6_stub’ undeclared
  • after this compat change, the module builds successfully again

Validation:

  • rebuilt amneziawg with DKMS on Fedora 44
  • booted into 7.1.3-200.fc44.x86_64
  • dkms status shows the module installed for 7.1.3-200.fc44.x86_64
  • modprobe amneziawg succeeds
  • Amnezia VPN tunnel works after reboot

This is a minimal compatibility fix confirmed on a real Fedora 44 system after kernel update from the 7.0 series to 7.1.3, while preserving the previous code path for older kernels.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/184 **Author:** [@XOlegator](https://github.com/XOlegator) **Created:** 7/7/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `fix/fedora44-kernel-7-1-ipv6-lookup-safe` --- ### 📝 Commits (2) - [`f4f2c92`](https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/commit/f4f2c92675db68acdc94a5fcb778c0746be1259d) compat: use ip6_dst_lookup_flow on kernels >= 7.1 - [`3bf15c5`](https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/commit/3bf15c56a4af685dd10fd2944d7755ae3d34147a) compat: handle Fedora 44 kernel 7.1 socket and timer API changes ### 📊 Changes **3 files changed** (+30 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `src/compat/compat.h` (+7 -5) 📝 `src/socket.c` (+17 -2) 📝 `src/timers.c` (+6 -5) </details> ### 📄 Description Fix IPv6 route lookup on kernels >= 7.1 without changing older-kernel behavior This keeps the existing `ipv6_stub->ipv6_dst_lookup_flow(...)` path for older kernels and adds a compat wrapper for kernels `>= 7.1`, where it switches to `ip6_dst_lookup_flow(...)`. Why: - DKMS build failed on Fedora 44 with kernel `7.1.3-200.fc44.x86_64` - failure was: `error: ‘ipv6_stub’ undeclared` - after this compat change, the module builds successfully again Validation: - rebuilt `amneziawg` with DKMS on Fedora 44 - booted into `7.1.3-200.fc44.x86_64` - `dkms status` shows the module installed for `7.1.3-200.fc44.x86_64` - `modprobe amneziawg` succeeds - Amnezia VPN tunnel works after reboot This is a minimal compatibility fix confirmed on a real Fedora 44 system after kernel update from the 7.0 series to 7.1.3, while preserving the previous code path for older kernels. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-linux-kernel-module#223
No description provided.