Adjust benchmark directory,enable HTTP test,rename variables,format codes
This commit is contained in:
3
test/decoders/http/test_based_on_stellar/env/gtest_entry.toml
vendored
Normal file
3
test/decoders/http/test_based_on_stellar/env/gtest_entry.toml
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[entry]
|
||||
name="http_decoder_test_state_entry"
|
||||
topic="HTTP_DECODER_MESSAGE"
|
||||
18
test/decoders/http/test_based_on_stellar/env/http_decoder.toml
vendored
Normal file
18
test/decoders/http/test_based_on_stellar/env/http_decoder.toml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
[basic]
|
||||
# Switch for decompress body, open(1) closed(0), default(0)
|
||||
decompress=1
|
||||
|
||||
# per session mempool size, default(32Ki)
|
||||
mempool_size=32768
|
||||
|
||||
# per session http parsed result queue length
|
||||
result_queue_len=16
|
||||
|
||||
# call fieldstat every stat_interval_pkts
|
||||
stat_interval_pkts=1000
|
||||
|
||||
# fieldstat output interval
|
||||
stat_output_interval=1
|
||||
|
||||
# connect tunnel
|
||||
proxy_enable=0
|
||||
4
test/decoders/http/test_based_on_stellar/env/log.toml
vendored
Normal file
4
test/decoders/http/test_based_on_stellar/env/log.toml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
[log]
|
||||
output = file # stderr, file
|
||||
file = "log/stellar.log"
|
||||
level = DEBUG # TRACE, DEBUG, INFO, WARN, ERROR, FATAL
|
||||
9
test/decoders/http/test_based_on_stellar/env/spec.toml
vendored
Normal file
9
test/decoders/http/test_based_on_stellar/env/spec.toml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
[[plugin]]
|
||||
path = "./plugin/http.so"
|
||||
init = "http_decoder_init"
|
||||
exit = "http_decoder_exit"
|
||||
|
||||
[[plugin]]
|
||||
path = "./plugin/http_test.so"
|
||||
init = "http_decoder_test_init"
|
||||
exit = "http_decoder_test_exit"
|
||||
57
test/decoders/http/test_based_on_stellar/env/stellar.toml
vendored
Normal file
57
test/decoders/http/test_based_on_stellar/env/stellar.toml
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
[id_generator]
|
||||
snowflake_worker_id_base = 1 # [0, 31]
|
||||
snowflake_worker_id_offset = 2 # [0, 127]
|
||||
|
||||
[packet_io]
|
||||
mode = dumpfile # dumpfile, marsio
|
||||
app_symbol = stellar
|
||||
dev_symbol = nf_0_fw
|
||||
|
||||
dumpfile_dir = "./pcap"
|
||||
nr_threads = 1 # [1, 256]
|
||||
#cpu_mask = [5, 6, 7, 8, 9, 10, 11, 12]
|
||||
cpu_mask = [5]
|
||||
|
||||
[ip_reassembly]
|
||||
enable = 1
|
||||
timeout = 10000 # range: [1, 60000] (ms)
|
||||
bucket_entries = 256 # range: [1, 4294967295] (must be power of 2)
|
||||
bucket_num = 4096 # range: [1, 4294967295]
|
||||
|
||||
[session_manager]
|
||||
# max session number
|
||||
max_tcp_session_num = 1000
|
||||
max_udp_session_num = 1000
|
||||
|
||||
# session overload evict
|
||||
tcp_overload_evict_old_sess = 1 # 1: evict old session, 0: bypass new session
|
||||
udp_overload_evict_old_sess = 1 # 1: evict old session, 0: bypass new session
|
||||
|
||||
# TCP timeout
|
||||
tcp_init_timeout = 10 # range: [1, 60000] (ms)
|
||||
tcp_handshake_timeout = 10 # range: [1, 60000] (ms)
|
||||
tcp_data_timeout = 10 # range: [1, 15999999000] (ms)
|
||||
tcp_half_closed_timeout = 10 # range: [1, 604800000] (ms)
|
||||
tcp_time_wait_timeout = 10 # range: [1, 600000] (ms)
|
||||
tcp_discard_timeout = 10 # range: [1, 15999999000] (ms)
|
||||
tcp_unverified_rst_timeout = 10 # range: [1, 600000] (ms)
|
||||
# UDP timeout
|
||||
udp_data_timeout = 10 # range: [1, 15999999000] (ms)
|
||||
udp_discard_timeout = 10 # range: [1, 15999999000] (ms)
|
||||
|
||||
# duplicate packet filter
|
||||
duplicated_packet_filter_enable = 0
|
||||
duplicated_packet_filter_capacity = 1000000 # range: [1, 4294967295]
|
||||
duplicated_packet_filter_timeout = 10 # range: [1, 60000] (ms)
|
||||
duplicated_packet_filter_error_rate = 0.00001 # range: [0.0, 1.0]
|
||||
|
||||
# evicted session filter
|
||||
evicted_session_filter_enable = 0
|
||||
evicted_session_filter_capacity = 1000000 # range: [1, 4294967295]
|
||||
evicted_session_filter_timeout = 10 # range: [1, 60000] (ms)
|
||||
evicted_session_filter_error_rate = 0.00001 # range: [0.0, 1.0]
|
||||
|
||||
# TCP reassembly (Per direction)
|
||||
tcp_reassembly_enable = 1
|
||||
tcp_reassembly_max_timeout = 10 # range: [1, 60000] (ms)
|
||||
tcp_reassembly_max_segments = 256 # range: [2, 4096]
|
||||
Reference in New Issue
Block a user