Skip to contentSkip to conversation

monitor: fix build with INGRESS/EGRESS definitions

PATCH Applied James Prestwood 2 participants 2 messages Sep 4, 2024 – Sep 5, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 monitor: fix build with INGRESS/EGRESS definitions

These new values are undefined on older kernels (e.g. 5.15)

---
 monitor/nlmon.c | 8 ++++++++
 1 file changed, 8 insertions(+)
monitor/nlmon.c +8 -0
index f365b36f..66df08a4 100644
@@ -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"
Signature · 1 line
2.34.1
#1 lore raw

Hi James,

Quoted 4 lines · James Prestwood

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