summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoryangwei <[email protected]>2024-04-03 14:23:52 +0800
committeryangwei <[email protected]>2024-04-21 10:41:59 +0800
commite0721a0542fb4eb0951324112beedd5d8f45a854 (patch)
treef1a892ef0d0d5a61ebfbbc5c796fa274306da249 /include
parent199f3d3749b7ab236f189e3e79095110d37f6ddd (diff)
✨ feat(bloom library): choose in sapp.toml
Diffstat (limited to 'include')
-rw-r--r--include/private/sapp_global_val.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/private/sapp_global_val.h b/include/private/sapp_global_val.h
index b02c654..bb7905f 100644
--- a/include/private/sapp_global_val.h
+++ b/include/private/sapp_global_val.h
@@ -209,15 +209,22 @@ typedef struct{
}sapp_config_packet_io_tunnel_t;
+enum bloom_library{
+ BLOOM_LIBRARY_NONE=0,
+ BLOOM_LIBRARY_DABLOOM,
+ BLOOM_LIBRARY_APBLOOM,
+};
+
typedef struct{
int kickout_udp_stream_enabled;
int dup_pkt_distinguish_all_inject;
int dup_pkt_distinguish_ipv4_tcp;
int dup_pkt_distinguish_ipv4_udp;
int bloom_capacity;
- double bloom_error_rate;
int bloom_timeout;
int bloom_slice_num;
+ enum bloom_library bloom_library;
+ double bloom_error_rate;
}sapp_dup_pkt_t;
typedef struct{