From: Jeff Lucovsky Date: Sun, 16 Apr 2023 12:35:02 +0000 (-0400) Subject: pf-ring: Add add'l cluster types X-Git-Tag: suricata-7.0.0-rc2~314 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ac3bee423ef4e3ec0381c665abbcc692c64b904;p=thirdparty%2Fsuricata.git pf-ring: Add add'l cluster types 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 --- diff --git a/src/source-pfring.h b/src/source-pfring.h index 31fb745c90..163568a9e0 100644 --- a/src/source-pfring.h +++ b/src/source-pfring.h @@ -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__ */