commit 23cf6107c6c22f32ba358e3316264eec4d0d30c2
parent c66438e34fdf54afddccd027d5cc06a38946343a
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 4 Sep 2024 08:11:22 -0700
monitor: fix build with INGRESS/EGRESS definitions
These new values are undefined on older kernels (e.g. 5.15)
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git 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"