Commit Graph

7 Commits

Author SHA1 Message Date
Adam Duskett 298faf91bc ovpn-dco: bump version to 0.2.20240320
Fixes builds against kernel 6.6

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
2024-04-07 20:42:39 -07:00
Martin Schiller d42a6758b9 ovpn-dco: fix package dependencies
We have to add an "IPV6:" in front of the kmod-udptunnel6 to fix
redundant dependencies with the openvpn-* packages.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2023-09-16 17:03:03 +08:00
Martin Schiller 57dd58a14c ovpn-dco: Update to v0.2.20230426
OpenVPN 2.6.2+ changes the way OpenVPN control packets are handled on
Linux when DCO is active, fixing the lockups observed with 2.6.0/2.6.1
under high client connect/disconnect activity. This is an INCOMPATIBLE
change and therefore an ovpn-dco kernel module older than v0.2.20230323
(commit ID 726fdfe0fa21) will not work anymore and must be upgraded.
The kernel module was renamed to "ovpn-dco-v2.ko" in order to highlight
this change and ensure that users and userspace software could easily
understand which version is loaded. Attempting to use the old ovpn-dco
with 2.6.2+ will lead to disabling DCO at runtime.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2023-07-24 22:50:06 -07:00
Paul Fertser 0c10c224be treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.

The following temporary change was made to the core:

diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
 abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))

 COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))

 all:
 FORCE: ;

And this command used to fix affected packages:

for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
                              sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
  make package/$i/download
done

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 22:46:58 +02:00
John Thomson 5c8780e9de ovpn-dco: bump package to fix kernel 6.1 compile
Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
2022-11-15 07:25:16 -08:00
Sven Eckelmann 8340b842f5 ovpn-dco: Avoid building against musl headers
The musl headers contain defines which are incompatible with kernel builds.
For example alltypes.h contain a __BIG_ENDIAN define. This will force
various kernel functions/macros to be build in a way which requires the
target system to be big endian. But if the target system is actually little
endian, these function will then not perform there intended tasks. The
actual (hard to debug) effects can vary between minor problems and fatal
errors.

This is port of the fix from OpenWrt's commit 9ac47ee46918 ("build: use
-nostdinc and -isystem in NOSTDINC_FLAGS for out-of-tree kernel modules")

Fixes: 17cd1793bb ("ovpn-dco: Add package")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-11-29 01:44:11 -08:00
Jianhui Zhao 17cd1793bb ovpn-dco: Add package
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-11-12 11:02:03 -08:00