From b4a0f872e652a53c0005c135d7f98d416628804d Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 1 Jun 2021 12:49:46 +0200 Subject: compat: account for lack of CSUM_SND_TAG on ≤12.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was added to 12.1 in a security fix, but wasn't really wired up properly, so this effectively disables it from packet resetting, which is a bummer, but it's more preferable than hacking this in bad ways. Signed-off-by: Jason A. Donenfeld --- src/compat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compat.h b/src/compat.h index 00ab0d8..575b44d 100644 --- a/src/compat.h +++ b/src/compat.h @@ -98,4 +98,9 @@ static inline uint32_t arc4random_uniform(uint32_t bound) } typedef void callout_func_t(void *); + +#ifndef CSUM_SND_TAG +#define CSUM_SND_TAG 0x80000000 +#endif + #endif -- cgit v1.2.3-59-g8ed1b