Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 31d14f89 authored by derfelot's avatar derfelot
Browse files

net: Update WireGuard to v1.0.20210124

parent 82e499ff
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -10,6 +10,17 @@
#include <linux/kconfig.h>
#include <linux/version.h>

#ifdef RHEL_MAJOR
#if RHEL_MAJOR == 7
#define ISRHEL7
#elif RHEL_MAJOR == 8
#define ISRHEL8
#if RHEL_MINOR == 4
#define ISCENTOS8S
#endif
#endif
#endif

/* PaX compatibility */
#if defined(RAP_PLUGIN)
#undef ENTRY
@@ -40,7 +51,7 @@
#undef pull
#endif

#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 76)
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 76) && !defined(ISCENTOS8S)
#define SYM_FUNC_START ENTRY
#define SYM_FUNC_END ENDPROC
#endif
+1 −1
Original line number Diff line number Diff line
@@ -823,7 +823,7 @@ static __always_inline void old_rcu_barrier(void)
#define COMPAT_CANNOT_DEPRECIATE_BH_RCU
#endif

#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 10) && !defined(ISRHEL8)
#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 10) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0) && !defined(ISRHEL8)) || LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 217)
static inline void skb_mark_not_on_list(struct sk_buff *skb)
{
	skb->next = NULL;
+1 −1
Original line number Diff line number Diff line
#ifndef WIREGUARD_VERSION
#define WIREGUARD_VERSION "1.0.20201221"
#define WIREGUARD_VERSION "1.0.20210124"
#endif