]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
pf-ring: Add add'l cluster types
authorJeff Lucovsky <jlucovsky@oisf.net>
Sun, 16 Apr 2023 12:35:02 +0000 (08:35 -0400)
committerVictor Julien <vjulien@oisf.net>
Mon, 1 May 2023 06:04:41 +0000 (08:04 +0200)
This commit adds preprocessor values for additional pf-ring
cluster-types:
- CLUSTER_INNER_FLOW
- CLUSTER_INNER_FLOW_2_TUPLE
- CLUSTER_INNER_FLOW_4_TUPLE
- CLUSTER_INNER_FLOW_5_TUPLE

Issue: 5975

src/source-pfring.h

index 31fb745c90315636dcd509b596b41a2800bcfb24..163568a9e04803fe94ca8b84763aa80a23039e14 100644 (file)
@@ -69,8 +69,16 @@ void TmModuleDecodePfringRegister (void);
 int PfringConfGetThreads(void);
 void PfringLoadConfig(void);
 
-/* We don't have to use an enum that sucks in our code */
+/*
+ * We don't have to use an enum that sucks in our code
+ * these values must match with cluster_type in the kernel
+ * include file pf_ring.h
+ */
 #define CLUSTER_FLOW 0
 #define CLUSTER_ROUND_ROBIN 1
 #define CLUSTER_FLOW_5_TUPLE 4
+#define CLUSTER_INNER_FLOW         6
+#define CLUSTER_INNER_FLOW_2_TUPLE 7
+#define CLUSTER_INNER_FLOW_4_TUPLE 8
+#define CLUSTER_INNER_FLOW_5_TUPLE 9
 #endif /* __SOURCE_PFRING_H__ */