diff mbox series

monitor: fix build with INGRESS/EGRESS definitions

Message ID 20240904151122.298818-1-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series monitor: fix build with INGRESS/EGRESS definitions | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-alpine-ci-fetch success Fetch PR
prestwoj/iwd-ci-gitlint success GitLint
prestwoj/iwd-ci-fetch success Fetch PR
prestwoj/iwd-alpine-ci-setupell success Prep - Setup ELL
prestwoj/iwd-ci-setupell success Prep - Setup ELL
prestwoj/iwd-ci-makedistcheck success Make Distcheck
prestwoj/iwd-ci-incremental_build success Incremental build not run PASS
prestwoj/iwd-alpine-ci-makedistcheck success Make Distcheck
prestwoj/iwd-alpine-ci-incremental_build success Incremental build not run PASS
prestwoj/iwd-ci-build success Build - Configure
prestwoj/iwd-alpine-ci-build success Build - Configure
prestwoj/iwd-ci-makecheckvalgrind success Make Check w/Valgrind
prestwoj/iwd-ci-clang success clang PASS
prestwoj/iwd-ci-makecheck success Make Check
prestwoj/iwd-alpine-ci-makecheckvalgrind success Make Check w/Valgrind
prestwoj/iwd-alpine-ci-makecheck success Make Check
prestwoj/iwd-ci-testrunner success test-runner PASS

Commit Message

James Prestwood Sept. 4, 2024, 3:11 p.m. UTC
These new values are undefined on older kernels (e.g. 5.15)
---
 monitor/nlmon.c | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Denis Kenzior Sept. 5, 2024, 3:08 a.m. UTC | #1
Hi James,

On 9/4/24 10:11 AM, James Prestwood wrote:
> These new values are undefined on older kernels (e.g. 5.15)
> ---
>   monitor/nlmon.c | 8 ++++++++
>   1 file changed, 8 insertions(+)

Applied, thanks.

Regards,
-Denis
diff mbox series

Patch

diff --git a/monitor/nlmon.c b/monitor/nlmon.c
index f365b36f..66df08a4 100644
--- a/monitor/nlmon.c
+++ b/monitor/nlmon.c
@@ -48,6 +48,14 @@ 
 #define ARPHRD_NETLINK	824
 #endif
 
+#ifndef RMNET_FLAGS_INGRESS_MAP_CKSUMV5
+#define RMNET_FLAGS_INGRESS_MAP_CKSUMV5 (1U << 4)
+#endif
+
+#ifndef RMNET_FLAGS_EGRESS_MAP_CKSUMV5
+#define RMNET_FLAGS_EGRESS_MAP_CKSUMV5 (1U << 5)
+#endif
+
 #include "linux/nl80211.h"
 
 #include "ell/useful.h"