diff options
| author | yangwei <[email protected]> | 2024-04-03 14:23:52 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-04-21 10:41:59 +0800 |
| commit | e0721a0542fb4eb0951324112beedd5d8f45a854 (patch) | |
| tree | f1a892ef0d0d5a61ebfbbc5c796fa274306da249 /include | |
| parent | 199f3d3749b7ab236f189e3e79095110d37f6ddd (diff) | |
✨ feat(bloom library): choose in sapp.toml
Diffstat (limited to 'include')
| -rw-r--r-- | include/private/sapp_global_val.h | 9 |
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{ |
