From nobody Sun Feb 8 04:31:05 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F207C31AA94; Mon, 5 Jan 2026 08:26:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767601614; cv=none; b=prQaW4eKOzrtYW/6u4YHRWw/OVRS18nH0yq7i86Ai3RgmrIVOpvEH5VK2LAQ4LqR/sfpGaug3xlkp32YbJyUaM14KhNr+tJzXc60By/Mo7pYv5R8XbDORr7ex5msbX2GeEo1v4+KIcr5wGte2zjEHwQFRors54cbZtX+b+2P8+8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767601614; c=relaxed/simple; bh=M7HLAe90Qbpokyf331eCA/pwNjXKx5PAI1cBuE0OKMo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XqrcpvgD6l6i8BDL6DUf90pnaBEf4ePfnV8drSEZ2DlG16JJJwz2BVhgDaOhOliYwayyJkw7aYWkJjtxsblgVFpa9Sp8OBZ4hKZpqsmnkBdWruO81d/bXRwCNYi7foGOXi14/HQv7YvddH35eymTlvyg1iqmORDHN4W4R5dK8kQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=csmM31Hg; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=dHgEO3EX; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="csmM31Hg"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="dHgEO3EX" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1767601611; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qu0zNe88YkmXZJuzgQmdYipAfyHlqpY82/blAbrTdJw=; b=csmM31HgRjc7e1Dy3oZQZgG56/0VcznmFXx5mhkpa3fFOvRg0FCpFFdIdlnUKgPZ3p6QX7 1pegkHLTiR6lnKjEfs+E3g8rebTRBRj6gpiKeZ2f1FjCclTcTx9+iYTI5MRCc/Zw6oT8Lb tcMFKEKT6z5lHKsgeqDcJSshzIZP/SWJwk733+iTWwK20bpfCDsyBqA2Gznlh9+7yCinnG eLeCN3KrMTtaxNf6cMFNZQH4MfYRugGaccWy2eqx0uXKI6pK/E8UcRjiChigV2231VA22+ J0ijF+Qd/8djNbxEZuiS8mIKaeIJ+gUA2RT16jk1JdXwOnf3cgVPsghmKWqBqA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1767601611; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qu0zNe88YkmXZJuzgQmdYipAfyHlqpY82/blAbrTdJw=; b=dHgEO3EXrumQJUiFTfDdVodejds4b8Fju3B65xkLkQqmyAqB5E+qQVGaPANI6B5ioiqCpS eZ2x36/mbrkq+NAA== Date: Mon, 05 Jan 2026 09:26:47 +0100 Subject: [PATCH RFC net-next 1/3] uapi: add INT_MAX and INT_MIN constants Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260105-uapi-limits-v1-1-023bc7a13037@linutronix.de> References: <20260105-uapi-limits-v1-0-023bc7a13037@linutronix.de> In-Reply-To: <20260105-uapi-limits-v1-0-023bc7a13037@linutronix.de> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Andrew Lunn , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Phil Sutter Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1767601610; l=771; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=M7HLAe90Qbpokyf331eCA/pwNjXKx5PAI1cBuE0OKMo=; b=gHuSQxVq1/QXx8MzJtYqhw6AG/Xq+ukXL9eye9MGMePXbavcREoV+EY1WkqJzmZsOZkaQt9ga ESS0GELn94cBmAUQXHW4ryMNvcjtaSylXjk8msrPEsKAas5WoawVflv X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Some UAPI headers use INT_MAX and INT_MIN. Currently they include for their definitions, which introduces a problematic dependency on libc. Add custom, namespaced definitions of INT_MAX and INT_MIN using the same values as the regular kernel code. Signed-off-by: Thomas Wei=C3=9Fschuh --- include/uapi/linux/limits.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/limits.h b/include/uapi/linux/limits.h index 6bcbe3068761..35ffa2667309 100644 --- a/include/uapi/linux/limits.h +++ b/include/uapi/linux/limits.h @@ -18,4 +18,7 @@ =20 #define RTSIG_MAX 32 =20 +#define __KERNEL_INT_MAX ((int)(~0U >> 1)) +#define __KERNEL_INT_MIN (-__KERNEL_INT_MAX - 1) + #endif --=20 2.52.0 From nobody Sun Feb 8 04:31:05 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 899E83314A9; Mon, 5 Jan 2026 08:26:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767601615; cv=none; b=KX/3rv6KZNFx1+lxpsO6zMl6969W/zHxi18FqS7zNWvQ8UjkFX65/y5fbe39KgetF2xIV/sQr3Xy8u7Y/HOyhylzqTLUwbaOJ0wYt+M0zSnv2A+GPLzkjUXpR3xkGS7EJVISf7TPumlFGR+Ey1rXzZncjcaDn+5pxSkOh/xqYtU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767601615; c=relaxed/simple; bh=NLm5MuB4qw8Iur6kOFL/Cq64vy6/cvlOgwEDQ2/NMys=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kCMy0T/z60PMI0RcWu+QHmpaAxHkDCwYa8Puh5V7qlYjfE2CWdcojGk8iBJQZmW3McV7WalVNGXwIYhAuOJqB/XuQs7D0sh0HKfrluP6xwcp1Uls3ctlqjnfCwmgwc/D7EaI8IY0IDpuqpyQHy6SzSg2rbGlCn8zbH6H7l+yF2Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=FPpY+BjV; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=j3+jTxXA; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="FPpY+BjV"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="j3+jTxXA" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1767601611; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c0EjK/xZ508m8ZLhWyIV/BZR47eYN0XRtYc1n0RBlPg=; b=FPpY+BjVT5rgr+ojj/rGN+mfWwhSbU8T15zYUjpx0ofVwZWyJUa/ky3mrfKicUfIwSFsKd hpy7zeR4CMsxUA47wvcUEO0QL7jDE20CxVUi6V5SC2DRvtOhsif3oSJ8xQ3Bej8uMXkDgn aJMpNHb+FaUE1jOzZlhPfSZ7Vxg3FVMIYu4uThB9jsvVPh+1qm+Nf+baEPrMcGkQZstf+3 hpRW6Z/YQKjSn3ED/v6CAtpua3yLccoyPID3zWJ1J52SV54dcsK/xGLg3C7SnDNKlHdR9K E8sU6sswY5kSlLMklMrGFM14SMmDyuFD58OqtHWLE88QeOI/038w1AB6k8ivCQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1767601611; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c0EjK/xZ508m8ZLhWyIV/BZR47eYN0XRtYc1n0RBlPg=; b=j3+jTxXAHUyk7yYpJZgVxAIOwxvNmwZ8JmtCIAj20prJq5ze77V80UBUNJnVGevoMY0UZN FRfG/oYjaEkvxoCA== Date: Mon, 05 Jan 2026 09:26:48 +0100 Subject: [PATCH RFC net-next 2/3] ethtool: uapi: Use UAPI definition of INT_MAX Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260105-uapi-limits-v1-2-023bc7a13037@linutronix.de> References: <20260105-uapi-limits-v1-0-023bc7a13037@linutronix.de> In-Reply-To: <20260105-uapi-limits-v1-0-023bc7a13037@linutronix.de> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Andrew Lunn , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Phil Sutter Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1767601610; l=1195; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=NLm5MuB4qw8Iur6kOFL/Cq64vy6/cvlOgwEDQ2/NMys=; b=VyitLZaUJpnI0WhdJ2xm/BdP0eQwYT8My04ZcTTQm+6ijga8HfaT+A6GmCwClF21AOGu9Ee2P DBdCmoBBEdUB/9r/h9+wdwRlX95qRx0zPIFcnQZ9pUNAl+4xQBpJcZa X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Using to gain access to INT_MAX introduces a dependency on a libc, which UAPI headers should not do. Use the equivalent UAPI constant. Signed-off-by: Thomas Wei=C3=9Fschuh --- include/uapi/linux/ethtool.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index eb7ff2602fbb..9500236a9d2e 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h @@ -15,13 +15,10 @@ #define _UAPI_LINUX_ETHTOOL_H =20 #include +#include #include #include =20 -#ifndef __KERNEL__ -#include /* for INT_MAX */ -#endif - /* All structures exposed to userland should be defined such that they * have the same layout for 32-bit and 64-bit userland. */ @@ -2200,7 +2197,7 @@ enum ethtool_link_mode_bit_indices { =20 static inline int ethtool_validate_speed(__u32 speed) { - return speed <=3D INT_MAX || speed =3D=3D (__u32)SPEED_UNKNOWN; + return speed <=3D __KERNEL_INT_MAX || speed =3D=3D (__u32)SPEED_UNKNOWN; } =20 /* Duplex, half or full. */ --=20 2.52.0 From nobody Sun Feb 8 04:31:05 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D87223314AB; Mon, 5 Jan 2026 08:26:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767601615; cv=none; b=IuffSexxaVrCwbs6O2rg/45N8FK2p/nFMUMJrnPVnRieSsjZfspXbS6XphUtM8VQYO8FZyLcKrEWHB9yfLWGlwauH5xlFHBCagUwkxzdF9fOg+W5fZkFS2+bDosBHkDlR4bEiTFHwiibTD3nO0mQwJMTru+e7XfMGtjly6xTOFg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767601615; c=relaxed/simple; bh=P4/2AsT9n14c0ef4aSD1ALtr5hfCRfM8S6Cf4YlCz0I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EJIEmBPye5o5pmeOGFHH298AmdACF+jilvoiuJNnmsyUOPY7KJEpPeFcAEC2Syv+9dkO4gaYOBXZanuDdjSc4tPm7CLDwKYU/4CycmDSEzc9CVvg+9ihpIf4QzL0CnUEKkSyYuYZSs4iBRbWzuN6LdYd1kYnw1fFrQIEwlR3Z64= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=J/lGH1yV; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ZIAXgaRp; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="J/lGH1yV"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ZIAXgaRp" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1767601612; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+IjD3h3khDbzYNe/aBGpfLpRCToA2hBBmeoprUDwalw=; b=J/lGH1yV0CqsK7lMoSSr3DnEmr8bbIbbLfPIueCg7YHnRgNMF0kHnp+jLT+YuxQmN4X92C d655+Bl2tCThO+1RX4n+dAyYrZQHObWtPmFrDvaQ2UtDwqRKM3u9E9ZUyusJBTZgc1xmQD wMiv0ZGwuN7c4TF4sayXKwaeMbLBFFFZfQKgDWBKGc78VYLipYGJ4h8uW8W47k4ypeInbb KkhLbA9e9KcQ+7iqc04hTMUHUzuu4V1FAczVIQxEedNlBkwdwbNloo5jQO0+jgu0isC6lz 57m+79FWsRkY4RPAqU4O9UBTH6v61ppHn/BgYEQ8ay3o68xUhl3m11kC8paITA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1767601612; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+IjD3h3khDbzYNe/aBGpfLpRCToA2hBBmeoprUDwalw=; b=ZIAXgaRp8E+FxrBqV1a30iCVQsobmwftBdzvXn8owa0MmKkJuoy22J02rZ7b2wVJVrNAyq VIpmLZu3as47VJDw== Date: Mon, 05 Jan 2026 09:26:49 +0100 Subject: [PATCH RFC net-next 3/3] netfilter: uapi: Use UAPI definition of INT_MAX and INT_MIN Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260105-uapi-limits-v1-3-023bc7a13037@linutronix.de> References: <20260105-uapi-limits-v1-0-023bc7a13037@linutronix.de> In-Reply-To: <20260105-uapi-limits-v1-0-023bc7a13037@linutronix.de> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Andrew Lunn , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Phil Sutter Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1767601610; l=3712; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=P4/2AsT9n14c0ef4aSD1ALtr5hfCRfM8S6Cf4YlCz0I=; b=3kbE7So0hiBtD8nxv9RU5JAhr0H365fotZ8m/pGC3lRQdLC1DaILXOwzSk+6+CbEQuZdVEFVc MlUAOh9yWfJCQEBW8rQlaaOgo19di8zwFbFKZvnr6CV9kqbEzLCW5ip X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Using to gain access to INT_MAX and INT_MIN introduces a dependency on a libc, which UAPI headers should not do. Use the equivalent UAPI constants. Signed-off-by: Thomas Wei=C3=9Fschuh --- include/uapi/linux/netfilter_bridge.h | 9 +++------ include/uapi/linux/netfilter_ipv4.h | 9 ++++----- include/uapi/linux/netfilter_ipv6.h | 7 +++---- 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/include/uapi/linux/netfilter_bridge.h b/include/uapi/linux/net= filter_bridge.h index 1610fdbab98d..6ace6c8b211b 100644 --- a/include/uapi/linux/netfilter_bridge.h +++ b/include/uapi/linux/netfilter_bridge.h @@ -6,15 +6,12 @@ */ =20 #include +#include #include #include #include #include =20 -#ifndef __KERNEL__ -#include /* for INT_MIN, INT_MAX */ -#endif - /* Bridge Hooks */ /* After promisc drops, checksum checks. */ #define NF_BR_PRE_ROUTING 0 @@ -31,14 +28,14 @@ #define NF_BR_NUMHOOKS 6 =20 enum nf_br_hook_priorities { - NF_BR_PRI_FIRST =3D INT_MIN, + NF_BR_PRI_FIRST =3D __KERNEL_INT_MIN, NF_BR_PRI_NAT_DST_BRIDGED =3D -300, NF_BR_PRI_FILTER_BRIDGED =3D -200, NF_BR_PRI_BRNF =3D 0, NF_BR_PRI_NAT_DST_OTHER =3D 100, NF_BR_PRI_FILTER_OTHER =3D 200, NF_BR_PRI_NAT_SRC =3D 300, - NF_BR_PRI_LAST =3D INT_MAX, + NF_BR_PRI_LAST =3D __KERNEL_INT_MAX, }; =20 #endif /* _UAPI__LINUX_BRIDGE_NETFILTER_H */ diff --git a/include/uapi/linux/netfilter_ipv4.h b/include/uapi/linux/netfi= lter_ipv4.h index 155e77d6a42d..e675534b2128 100644 --- a/include/uapi/linux/netfilter_ipv4.h +++ b/include/uapi/linux/netfilter_ipv4.h @@ -6,13 +6,12 @@ #define _UAPI__LINUX_IP_NETFILTER_H =20 =20 +#include #include =20 /* only for userspace compatibility */ #ifndef __KERNEL__ =20 -#include /* for INT_MIN, INT_MAX */ - /* IP Hooks */ /* After promisc drops, checksum checks. */ #define NF_IP_PRE_ROUTING 0 @@ -28,7 +27,7 @@ #endif /* ! __KERNEL__ */ =20 enum nf_ip_hook_priorities { - NF_IP_PRI_FIRST =3D INT_MIN, + NF_IP_PRI_FIRST =3D __KERNEL_INT_MIN, NF_IP_PRI_RAW_BEFORE_DEFRAG =3D -450, NF_IP_PRI_CONNTRACK_DEFRAG =3D -400, NF_IP_PRI_RAW =3D -300, @@ -41,8 +40,8 @@ enum nf_ip_hook_priorities { NF_IP_PRI_NAT_SRC =3D 100, NF_IP_PRI_SELINUX_LAST =3D 225, NF_IP_PRI_CONNTRACK_HELPER =3D 300, - NF_IP_PRI_CONNTRACK_CONFIRM =3D INT_MAX, - NF_IP_PRI_LAST =3D INT_MAX, + NF_IP_PRI_CONNTRACK_CONFIRM =3D __KERNEL_INT_MAX, + NF_IP_PRI_LAST =3D __KERNEL_INT_MAX, }; =20 /* Arguments for setsockopt SOL_IP: */ diff --git a/include/uapi/linux/netfilter_ipv6.h b/include/uapi/linux/netfi= lter_ipv6.h index 80aa9b0799af..6be21833f696 100644 --- a/include/uapi/linux/netfilter_ipv6.h +++ b/include/uapi/linux/netfilter_ipv6.h @@ -9,13 +9,12 @@ #define _UAPI__LINUX_IP6_NETFILTER_H =20 =20 +#include #include =20 /* only for userspace compatibility */ #ifndef __KERNEL__ =20 -#include /* for INT_MIN, INT_MAX */ - /* IP6 Hooks */ /* After promisc drops, checksum checks. */ #define NF_IP6_PRE_ROUTING 0 @@ -32,7 +31,7 @@ =20 =20 enum nf_ip6_hook_priorities { - NF_IP6_PRI_FIRST =3D INT_MIN, + NF_IP6_PRI_FIRST =3D __KERNEL_INT_MIN, NF_IP6_PRI_RAW_BEFORE_DEFRAG =3D -450, NF_IP6_PRI_CONNTRACK_DEFRAG =3D -400, NF_IP6_PRI_RAW =3D -300, @@ -45,7 +44,7 @@ enum nf_ip6_hook_priorities { NF_IP6_PRI_NAT_SRC =3D 100, NF_IP6_PRI_SELINUX_LAST =3D 225, NF_IP6_PRI_CONNTRACK_HELPER =3D 300, - NF_IP6_PRI_LAST =3D INT_MAX, + NF_IP6_PRI_LAST =3D __KERNEL_INT_MAX, }; =20 =20 --=20 2.52.0