From 614e3adc489a55fe620a4a7b15a359a2401f6537 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 5 Sep 2019 15:36:40 -0600 Subject: compat: work around ubuntu breakage They forgot to backport hsiphash. --- src/compat/compat.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/compat/compat.h') diff --git a/src/compat/compat.h b/src/compat/compat.h index fb09037..a608fb3 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -21,6 +21,8 @@ #ifdef UTS_UBUNTU_RELEASE_ABI #if LINUX_VERSION_CODE == KERNEL_VERSION(3, 13, 11) #define ISUBUNTU1404 +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0) +#define ISUBUNTU1604 #endif #endif #ifdef CONFIG_SUSE_KERNEL @@ -840,6 +842,13 @@ static inline void skb_mark_not_on_list(struct sk_buff *skb) #define cpu_have_named_feature(name) (elf_hwcap & (HWCAP_ ## name)) #endif +#if defined(ISUBUNTU1604) +#include +#define hsiphash_2u32 siphash_2u32 +#define hsiphash_3u32 siphash_3u32 +#define hsiphash_key_t siphash_key_t +#endif + #ifdef CONFIG_VE #include #ifdef NETIF_F_VIRTUAL -- cgit v1.2.3-59-g8ed1b