crash.software
Projects
Pull Requests
Issues
Builds
5GReplay
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
5GReplay
Files
🤬
Sign In
4fba0f1e
ROOT
/
src
/
engine
/
configure_override.h
Search
History
176 lines
|
ISO-8859-1
|
6 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
SRC_CONFIGURE_OVERRIDE_H_
_FIRST
(
a,...
)
FIRST
(
a
)
_SECOND
(
a,b,c,d
)
SECOND
(
a
)
_CASE
(
a,b,c,d
)
CASE
(
a
)
COMMA
(
)
EMPTY
(
)
DECLARE_CONF_ATT
(
...
)
(anonymous)
NO_SUPPORT
BOOL
UINT16_T
UINT32_T
CHAR_STAR
LIST
data_type_t
:
enum
NO_SUPPORT
BOOL
UINT16_T
UINT32_T
CHAR_STAR
LIST
identity_struct
val
:
int
data_type
:
data_type_t
ident
:
const char*
identity_t
:
struct identity_struct
val
:
int
data_type
:
data_type_t
ident
:
const char*
conf_override_element
(
config_t*,const char*,const char*
)
:
int
conf_override_element_by_id
(
config_t*,int,const char*
)
:
bool
conf_validate_data_value
(
const identity_t*,const char*
)
:
const char*
conf_print_identities_list
(
)
:
void
(anonymous)
DECLARE_CONF_ATT( (CONF_ATT__NONE, "no-support", NULL, NO_SUPPORT), //general (CONF_ATT__STACK_TYPE, "stack-type", &conf->stack_type, UINT32_T), (CONF_ATT__INPUT__DPDK_OPTION, "dpdk-option", &conf->dpdk_options, CHAR_STAR), //input (CONF_ATT__INPUT__MODE, "input.mode", &conf->input->input_mode, UINT16_T), (CONF_ATT__INPUT__SOURCE, "input.source", &conf->input->input_source, CHAR_STAR), (CONF_ATT__INPUT__SNAP_LEN, "input.snap-len", &conf->input->snap_len, UINT16_T), //output (CONF_ATT__OUTPUT__ENABLE, "output.enable", &conf->output->is_enable, BOOL), (CONF_ATT__OUTPUT__OUTPUT_DIR, "output.output-dir", &conf->output->output_dir, CHAR_STAR), (CONF_ATT__OUTPUT__REPORT_DESCRIPTION,"output.report-description", &conf->output->is_report_description, BOOL), (CONF_ATT__OUTPUT__SAMPLE_INTERVAL, "output.sample-interval", &conf->output->sample_interval, UINT16_T), //engine (CONF_ATT__ENGINE__THREAD_NB, "engine.thread-nb", &conf->engine->threads_size, UINT16_T), (CONF_ATT__ENGINE__EXCLUDE_RULES, "engine.exclude-rules", &conf->engine->excluded_rules, CHAR_STAR), (CONF_ATT__ENGINE__RULES_MASK, "engine.rules-mask", &conf->engine->rules_mask, CHAR_STAR), (CONF_ATT__ENGINE__MAX_INSTANCES, "engine.max-instances", &conf->engine->max_instances, UINT32_T ), (CONF_ATT__MEMPOOL__MAX_MESSAGE_SIZE, "mempool.max-message-size", &conf->mempool->max_message_size, UINT32_T), (CONF_ATT__MEMPOOL__MAX_BYTES, "mempool.max-bytess", &conf->mempool->max_bytes, UINT16_T), (CONF_ATT__MEMPOOL__MAX_ELEMENTS, "mempool.max-elements", &conf->mempool->max_elements, UINT16_T), (CONF_ATT__MEMPOOL__SMP_RING_SIZE, "mempool.smp-ring-size", &conf->mempool->smp_ring_size, UINT32_T ), (CONF_ATT__FORWARD__ENABLE, "forward.enable", &conf->forward->is_enable, BOOL), (CONF_ATT__FORWARD__OUTPUT_NIC,"forward.output-nic", &conf->forward->output_nic, CHAR_STAR), (CONF_ATT__FORWARD__SNAP_LEN, "forward.snap-len", &conf->forward->snap_len, UINT16_T), (CONF_ATT__FORWARD__NB_COPIES, "forward.nb-copies", &conf->forward->nb_copies, UINT32_T), (CONF_ATT__FORWARD__PROMISC, "forward.promisc", &conf->forward->promisc, UINT16_T) )
DECLARE_CONF_ATT( (CONF_ATT__NONE, "no-support", NULL, NO_SUPPORT), //general (CONF_ATT__STACK_TYPE, "stack-type", &conf->stack_type, UINT32_T), (CONF_ATT__INPUT__DPDK_OPTION, "dpdk-option", &conf->dpdk_options, CHAR_STAR), //input (CONF_ATT__INPUT__MODE, "input.mode", &conf->input->input_mode, UINT16_T), (CONF_ATT__INPUT__SOURCE, "input.source", &conf->input->input_source, CHAR_STAR), (CONF_ATT__INPUT__SNAP_LEN, "input.snap-len", &conf->input->snap_len, UINT16_T), //output (CONF_ATT__OUTPUT__ENABLE, "output.enable", &conf->output->is_enable, BOOL), (CONF_ATT__OUTPUT__OUTPUT_DIR, "output.output-dir", &conf->output->output_dir, CHAR_STAR), (CONF_ATT__OUTPUT__REPORT_DESCRIPTION,"output.report-description", &conf->output->is_report_description, BOOL), (CONF_ATT__OUTPUT__SAMPLE_INTERVAL, "output.sample-interval", &conf->output->sample_interval, UINT16_T), //engine (CONF_ATT__ENGINE__THREAD_NB, "engine.thread-nb", &conf->engine->threads_size, UINT16_T), (CONF_ATT__ENGINE__EXCLUDE_RULES, "engine.exclude-rules", &conf->engine->excluded_rules, CHAR_STAR), (CONF_ATT__ENGINE__RULES_MASK, "engine.rules-mask", &conf->engine->rules_mask, CHAR_STAR), (CONF_ATT__ENGINE__MAX_INSTANCES, "engine.max-instances", &conf->engine->max_instances, UINT32_T ), (CONF_ATT__MEMPOOL__MAX_MESSAGE_SIZE, "mempool.max-message-size", &conf->mempool->max_message_size, UINT32_T), (CONF_ATT__MEMPOOL__MAX_BYTES, "mempool.max-bytess", &conf->mempool->max_bytes, UINT16_T), (CONF_ATT__MEMPOOL__MAX_ELEMENTS, "mempool.max-elements", &conf->mempool->max_elements, UINT16_T), (CONF_ATT__MEMPOOL__SMP_RING_SIZE, "mempool.smp-ring-size", &conf->mempool->smp_ring_size, UINT32_T ), (CONF_ATT__FORWARD__ENABLE, "forward.enable", &conf->forward->is_enable, BOOL), (CONF_ATT__FORWARD__OUTPUT_NIC,"forward.output-nic", &conf->forward->output_nic, CHAR_STAR), (CONF_ATT__FORWARD__SNAP_LEN, "forward.snap-len", &conf->forward->snap_len, UINT16_T), (CONF_ATT__FORWARD__NB_COPIES, "forward.nb-copies", &conf->forward->nb_copies, UINT32_T), (CONF_ATT__FORWARD__PROMISC, "forward.promisc", &conf->forward->promisc, UINT16_T) )
(
DECLARE_CONF_ATT( (CONF_ATT__NONE, "no-support", NULL, NO_SUPPORT), //general (CONF_ATT__STACK_TYPE, "stack-type", &conf->stack_type, UINT32_T), (CONF_ATT__INPUT__DPDK_OPTION, "dpdk-option", &conf->dpdk_options, CHAR_STAR), //input (CONF_ATT__INPUT__MODE, "input.mode", &conf->input->input_mode, UINT16_T), (CONF_ATT__INPUT__SOURCE, "input.source", &conf->input->input_source, CHAR_STAR), (CONF_ATT__INPUT__SNAP_LEN, "input.snap-len", &conf->input->snap_len, UINT16_T), //output (CONF_ATT__OUTPUT__ENABLE, "output.enable", &conf->output->is_enable, BOOL), (CONF_ATT__OUTPUT__OUTPUT_DIR, "output.output-dir", &conf->output->output_dir, CHAR_STAR), (CONF_ATT__OUTPUT__REPORT_DESCRIPTION,"output.report-description", &conf->output->is_report_description, BOOL), (CONF_ATT__OUTPUT__SAMPLE_INTERVAL, "output.sample-interval", &conf->output->sample_interval, UINT16_T), //engine (CONF_ATT__ENGINE__THREAD_NB, "engine.thread-nb", &conf->engine->threads_size, UINT16_T), (CONF_ATT__ENGINE__EXCLUDE_RULES, "engine.exclude-rules", &conf->engine->excluded_rules, CHAR_STAR), (CONF_ATT__ENGINE__RULES_MASK, "engine.rules-mask", &conf->engine->rules_mask, CHAR_STAR), (CONF_ATT__ENGINE__MAX_INSTANCES, "engine.max-instances", &conf->engine->max_instances, UINT32_T ), (CONF_ATT__MEMPOOL__MAX_MESSAGE_SIZE, "mempool.max-message-size", &conf->mempool->max_message_size, UINT32_T), (CONF_ATT__MEMPOOL__MAX_BYTES, "mempool.max-bytess", &conf->mempool->max_bytes, UINT16_T), (CONF_ATT__MEMPOOL__MAX_ELEMENTS, "mempool.max-elements", &conf->mempool->max_elements, UINT16_T), (CONF_ATT__MEMPOOL__SMP_RING_SIZE, "mempool.smp-ring-size", &conf->mempool->smp_ring_size, UINT32_T ), (CONF_ATT__FORWARD__ENABLE, "forward.enable", &conf->forward->is_enable, BOOL), (CONF_ATT__FORWARD__OUTPUT_NIC,"forward.output-nic", &conf->forward->output_nic, CHAR_STAR), (CONF_ATT__FORWARD__SNAP_LEN, "forward.snap-len", &conf->forward->snap_len, UINT16_T), (CONF_ATT__FORWARD__NB_COPIES, "forward.nb-copies", &conf->forward->nb_copies, UINT32_T), (CONF_ATT__FORWARD__PROMISC, "forward.promisc", &conf->forward->promisc, UINT16_T) )DECLARE_CONF_ATT( (CONF_ATT__NONE, "no-support", NULL, NO_SUPPORT), //general (CONF_ATT__STACK_TYPE, "stack-type", &conf->stack_type, UINT32_T), (CONF_ATT__INPUT__DPDK_OPTION, "dpdk-option", &conf->dpdk_options, CHAR_STAR), //input (CONF_ATT__INPUT__MODE, "input.mode", &conf->input->input_mode, UINT16_T), (CONF_ATT__INPUT__SOURCE, "input.source", &conf->input->input_source, CHAR_STAR), (CONF_ATT__INPUT__SNAP_LEN, "input.snap-len", &conf->input->snap_len, UINT16_T), //output (CONF_ATT__OUTPUT__ENABLE, "output.enable", &conf->output->is_enable, BOOL), (CONF_ATT__OUTPUT__OUTPUT_DIR, "output.output-dir", &conf->output->output_dir, CHAR_STAR), (CONF_ATT__OUTPUT__REPORT_DESCRIPTION,"output.report-description", &conf->output->is_report_description, BOOL), (CONF_ATT__OUTPUT__SAMPLE_INTERVAL, "output.sample-interval", &conf->output->sample_interval, UINT16_T), //engine (CONF_ATT__ENGINE__THREAD_NB, "engine.thread-nb", &conf->engine->threads_size, UINT16_T), (CONF_ATT__ENGINE__EXCLUDE_RULES, "engine.exclude-rules", &conf->engine->excluded_rules, CHAR_STAR), (CONF_ATT__ENGINE__RULES_MASK, "engine.rules-mask", &conf->engine->rules_mask, CHAR_STAR), (CONF_ATT__ENGINE__MAX_INSTANCES, "engine.max-instances", &conf->engine->max_instances, UINT32_T ), (CONF_ATT__MEMPOOL__MAX_MESSAGE_SIZE, "mempool.max-message-size", &conf->mempool->max_message_size, UINT32_T), (CONF_ATT__MEMPOOL__MAX_BYTES, "mempool.max-bytess", &conf->mempool->max_bytes, UINT16_T), (CONF_ATT__MEMPOOL__MAX_ELEMENTS, "mempool.max-elements", &conf->mempool->max_elements, UINT16_T), (CONF_ATT__MEMPOOL__SMP_RING_SIZE, "mempool.smp-ring-size", &conf->mempool->smp_ring_size, UINT32_T ), (CONF_ATT__FORWARD__ENABLE, "forward.enable", &conf->forward->is_enable, BOOL), (CONF_ATT__FORWARD__OUTPUT_NIC,"forward.output-nic", &conf->forward->output_nic, CHAR_STAR), (CONF_ATT__FORWARD__SNAP_LEN, "forward.snap-len", &conf->forward->snap_len, UINT16_T), (CONF_ATT__FORWARD__NB_COPIES, "forward.nb-copies", &conf->forward->nb_copies, UINT32_T), (CONF_ATT__FORWARD__PROMISC, "forward.promisc", &conf->forward->promisc, UINT16_T) )DECLARE_CONF_ATT( (CONF_ATT__NONE, "no-support", NULL, NO_SUPPORT), //general (CONF_ATT__STACK_TYPE, "stack-type", &conf->stack_type, UINT32_T), (CONF_ATT__INPUT__DPDK_OPTION, "dpdk-option", &conf->dpdk_options, CHAR_STAR), //input (CONF_ATT__INPUT__MODE, "input.mode", &conf->input->input_mode, UINT16_T), (CONF_ATT__INPUT__SOURCE, "input.source", &conf->input->input_source, CHAR_STAR), (CONF_ATT__INPUT__SNAP_LEN, "input.snap-len", &conf->input->snap_len, UINT16_T), //output (CONF_ATT__OUTPUT__ENABLE, "output.enable", &conf->output->is_enable, BOOL), (CONF_ATT__OUTPUT__OUTPUT_DIR, "output.output-dir", &conf->output->output_dir, CHAR_STAR), (CONF_ATT__OUTPUT__REPORT_DESCRIPTION,"output.report-description", &conf->output->is_report_description, BOOL), (CONF_ATT__OUTPUT__SAMPLE_INTERVAL, "output.sample-interval", &conf->output->sample_interval, UINT16_T), //engine (CONF_ATT__ENGINE__THREAD_NB, "engine.thread-nb", &conf->engine->threads_size, UINT16_T), (CONF_ATT__ENGINE__EXCLUDE_RULES, "engine.exclude-rules", &conf->engine->excluded_rules, CHAR_STAR), (CONF_ATT__ENGINE__RULES_MASK, "engine.rules-mask", &conf->engine->rules_mask, CHAR_STAR), (CONF_ATT__ENGINE__MAX_INSTANCES, "engine.max-instances", &conf->engine->max_instances, UINT32_T ), (CONF_ATT__MEMPOOL__MAX_MESSAGE_SIZE, "mempool.max-message-size", &conf->mempool->max_message_size, UINT32_T), (CONF_ATT__MEMPOOL__MAX_BYTES, "mempool.max-bytess", &conf->mempool->max_bytes, UINT16_T), (CONF_ATT__MEMPOOL__MAX_ELEMENTS, "mempool.max-elements", &conf->mempool->max_elements, UINT16_T), (CONF_ATT__MEMPOOL__SMP_RING_SIZE, "mempool.smp-ring-size", &conf->mempool->smp_ring_size, UINT32_T ), (CONF_ATT__FORWARD__ENABLE, "forward.enable", &conf->forward->is_enable, BOOL), (CONF_ATT__FORWARD__OUTPUT_NIC,"forward.output-nic", &conf->forward->output_nic, CHAR_STAR), (CONF_ATT__FORWARD__SNAP_LEN, "forward.snap-len", &conf->forward->snap_len, UINT16_T), (CONF_ATT__FORWARD__NB_COPIES, "forward.nb-copies", &conf->forward->nb_copies, UINT32_T), (CONF_ATT__FORWARD__PROMISC, "forward.promisc", &conf->forward->promisc, UINT16_T) )
)
{...}
:
DECLARE_CONF_ATT( (CONF_ATT__NONE, "no-support", NULL, NO_SUPPORT), //general (CONF_ATT__STACK_TYPE, "stack-type", &conf->stack_type, UINT32_T), (CONF_ATT__INPUT__DPDK_OPTION, "dpdk-option", &conf->dpdk_options, CHAR_STAR), //input (CONF_ATT__INPUT__MODE, "input.mode", &conf->input->input_mode, UINT16_T), (CONF_ATT__INPUT__SOURCE, "input.source", &conf->input->input_source, CHAR_STAR), (CONF_ATT__INPUT__SNAP_LEN, "input.snap-len", &conf->input->snap_len, UINT16_T), //output (CONF_ATT__OUTPUT__ENABLE, "output.enable", &conf->output->is_enable, BOOL), (CONF_ATT__OUTPUT__OUTPUT_DIR, "output.output-dir", &conf->output->output_dir, CHAR_STAR), (CONF_ATT__OUTPUT__REPORT_DESCRIPTION,"output.report-description", &conf->output->is_report_description, BOOL), (CONF_ATT__OUTPUT__SAMPLE_INTERVAL, "output.sample-interval", &conf->output->sample_interval, UINT16_T), //engine (CONF_ATT__ENGINE__THREAD_NB, "engine.thread-nb", &conf->engine->threads_size, UINT16_T), (CONF_ATT__ENGINE__EXCLUDE_RULES, "engine.exclude-rules", &conf->engine->excluded_rules, CHAR_STAR), (CONF_ATT__ENGINE__RULES_MASK, "engine.rules-mask", &conf->engine->rules_mask, CHAR_STAR), (CONF_ATT__ENGINE__MAX_INSTANCES, "engine.max-instances", &conf->engine->max_instances, UINT32_T ), (CONF_ATT__MEMPOOL__MAX_MESSAGE_SIZE, "mempool.max-message-size", &conf->mempool->max_message_size, UINT32_T), (CONF_ATT__MEMPOOL__MAX_BYTES, "mempool.max-bytess", &conf->mempool->max_bytes, UINT16_T), (CONF_ATT__MEMPOOL__MAX_ELEMENTS, "mempool.max-elements", &conf->mempool->max_elements, UINT16_T), (CONF_ATT__MEMPOOL__SMP_RING_SIZE, "mempool.smp-ring-size", &conf->mempool->smp_ring_size, UINT32_T ), (CONF_ATT__FORWARD__ENABLE, "forward.enable", &conf->forward->is_enable, BOOL), (CONF_ATT__FORWARD__OUTPUT_NIC,"forward.output-nic", &conf->forward->output_nic, CHAR_STAR), (CONF_ATT__FORWARD__SNAP_LEN, "forward.snap-len", &conf->forward->snap_len, UINT16_T), (CONF_ATT__FORWARD__NB_COPIES, "forward.nb-copies", &conf->forward->nb_copies, UINT32_T), (CONF_ATT__FORWARD__PROMISC, "forward.promisc", &conf->forward->promisc, UINT16_T) )
DECLARE_CONF_ATT( (CONF_ATT__NONE, "no-support", NULL, NO_SUPPORT), //general (CONF_ATT__STACK_TYPE, "stack-type", &conf->stack_type, UINT32_T), (CONF_ATT__INPUT__DPDK_OPTION, "dpdk-option", &conf->dpdk_options, CHAR_STAR), //input (CONF_ATT__INPUT__MODE, "input.mode", &conf->input->input_mode, UINT16_T), (CONF_ATT__INPUT__SOURCE, "input.source", &conf->input->input_source, CHAR_STAR), (CONF_ATT__INPUT__SNAP_LEN, "input.snap-len", &conf->input->snap_len, UINT16_T), //output (CONF_ATT__OUTPUT__ENABLE, "output.enable", &conf->output->is_enable, BOOL), (CONF_ATT__OUTPUT__OUTPUT_DIR, "output.output-dir", &conf->output->output_dir, CHAR_STAR), (CONF_ATT__OUTPUT__REPORT_DESCRIPTION,"output.report-description", &conf->output->is_report_description, BOOL), (CONF_ATT__OUTPUT__SAMPLE_INTERVAL, "output.sample-interval", &conf->output->sample_interval, UINT16_T), //engine (CONF_ATT__ENGINE__THREAD_NB, "engine.thread-nb", &conf->engine->threads_size, UINT16_T), (CONF_ATT__ENGINE__EXCLUDE_RULES, "engine.exclude-rules", &conf->engine->excluded_rules, CHAR_STAR), (CONF_ATT__ENGINE__RULES_MASK, "engine.rules-mask", &conf->engine->rules_mask, CHAR_STAR), (CONF_ATT__ENGINE__MAX_INSTANCES, "engine.max-instances", &conf->engine->max_instances, UINT32_T ), (CONF_ATT__MEMPOOL__MAX_MESSAGE_SIZE, "mempool.max-message-size", &conf->mempool->max_message_size, UINT32_T), (CONF_ATT__MEMPOOL__MAX_BYTES, "mempool.max-bytess", &conf->mempool->max_bytes, UINT16_T), (CONF_ATT__MEMPOOL__MAX_ELEMENTS, "mempool.max-elements", &conf->mempool->max_elements, UINT16_T), (CONF_ATT__MEMPOOL__SMP_RING_SIZE, "mempool.smp-ring-size", &conf->mempool->smp_ring_size, UINT32_T ), (CONF_ATT__FORWARD__ENABLE, "forward.enable", &conf->forward->is_enable, BOOL), (CONF_ATT__FORWARD__OUTPUT_NIC,"forward.output-nic", &conf->forward->output_nic, CHAR_STAR), (CONF_ATT__FORWARD__SNAP_LEN, "forward.snap-len", &conf->forward->snap_len, UINT16_T), (CONF_ATT__FORWARD__NB_COPIES, "forward.nb-copies", &conf->forward->nb_copies, UINT32_T), (CONF_ATT__FORWARD__PROMISC, "forward.promisc", &conf->forward->promisc, UINT16_T) )
(
DECLARE_CONF_ATT( (CONF_ATT__NONE, "no-support", NULL, NO_SUPPORT), //general (CONF_ATT__STACK_TYPE, "stack-type", &conf->stack_type, UINT32_T), (CONF_ATT__INPUT__DPDK_OPTION, "dpdk-option", &conf->dpdk_options, CHAR_STAR), //input (CONF_ATT__INPUT__MODE, "input.mode", &conf->input->input_mode, UINT16_T), (CONF_ATT__INPUT__SOURCE, "input.source", &conf->input->input_source, CHAR_STAR), (CONF_ATT__INPUT__SNAP_LEN, "input.snap-len", &conf->input->snap_len, UINT16_T), //output (CONF_ATT__OUTPUT__ENABLE, "output.enable", &conf->output->is_enable, BOOL), (CONF_ATT__OUTPUT__OUTPUT_DIR, "output.output-dir", &conf->output->output_dir, CHAR_STAR), (CONF_ATT__OUTPUT__REPORT_DESCRIPTION,"output.report-description", &conf->output->is_report_description, BOOL), (CONF_ATT__OUTPUT__SAMPLE_INTERVAL, "output.sample-interval", &conf->output->sample_interval, UINT16_T), //engine (CONF_ATT__ENGINE__THREAD_NB, "engine.thread-nb", &conf->engine->threads_size, UINT16_T), (CONF_ATT__ENGINE__EXCLUDE_RULES, "engine.exclude-rules", &conf->engine->excluded_rules, CHAR_STAR), (CONF_ATT__ENGINE__RULES_MASK, "engine.rules-mask", &conf->engine->rules_mask, CHAR_STAR), (CONF_ATT__ENGINE__MAX_INSTANCES, "engine.max-instances", &conf->engine->max_instances, UINT32_T ), (CONF_ATT__MEMPOOL__MAX_MESSAGE_SIZE, "mempool.max-message-size", &conf->mempool->max_message_size, UINT32_T), (CONF_ATT__MEMPOOL__MAX_BYTES, "mempool.max-bytess", &conf->mempool->max_bytes, UINT16_T), (CONF_ATT__MEMPOOL__MAX_ELEMENTS, "mempool.max-elements", &conf->mempool->max_elements, UINT16_T), (CONF_ATT__MEMPOOL__SMP_RING_SIZE, "mempool.smp-ring-size", &conf->mempool->smp_ring_size, UINT32_T ), (CONF_ATT__FORWARD__ENABLE, "forward.enable", &conf->forward->is_enable, BOOL), (CONF_ATT__FORWARD__OUTPUT_NIC,"forward.output-nic", &conf->forward->output_nic, CHAR_STAR), (CONF_ATT__FORWARD__SNAP_LEN, "forward.snap-len", &conf->forward->snap_len, UINT16_T), (CONF_ATT__FORWARD__NB_COPIES, "forward.nb-copies", &conf->forward->nb_copies, UINT32_T), (CONF_ATT__FORWARD__PROMISC, "forward.promisc", &conf->forward->promisc, UINT16_T) )DECLARE_CONF_ATT( (CONF_ATT__NONE, "no-support", NULL, NO_SUPPORT), //general (CONF_ATT__STACK_TYPE, "stack-type", &conf->stack_type, UINT32_T), (CONF_ATT__INPUT__DPDK_OPTION, "dpdk-option", &conf->dpdk_options, CHAR_STAR), //input (CONF_ATT__INPUT__MODE, "input.mode", &conf->input->input_mode, UINT16_T), (CONF_ATT__INPUT__SOURCE, "input.source", &conf->input->input_source, CHAR_STAR), (CONF_ATT__INPUT__SNAP_LEN, "input.snap-len", &conf->input->snap_len, UINT16_T), //output (CONF_ATT__OUTPUT__ENABLE, "output.enable", &conf->output->is_enable, BOOL), (CONF_ATT__OUTPUT__OUTPUT_DIR, "output.output-dir", &conf->output->output_dir, CHAR_STAR), (CONF_ATT__OUTPUT__REPORT_DESCRIPTION,"output.report-description", &conf->output->is_report_description, BOOL), (CONF_ATT__OUTPUT__SAMPLE_INTERVAL, "output.sample-interval", &conf->output->sample_interval, UINT16_T), //engine (CONF_ATT__ENGINE__THREAD_NB, "engine.thread-nb", &conf->engine->threads_size, UINT16_T), (CONF_ATT__ENGINE__EXCLUDE_RULES, "engine.exclude-rules", &conf->engine->excluded_rules, CHAR_STAR), (CONF_ATT__ENGINE__RULES_MASK, "engine.rules-mask", &conf->engine->rules_mask, CHAR_STAR), (CONF_ATT__ENGINE__MAX_INSTANCES, "engine.max-instances", &conf->engine->max_instances, UINT32_T ), (CONF_ATT__MEMPOOL__MAX_MESSAGE_SIZE, "mempool.max-message-size", &conf->mempool->max_message_size, UINT32_T), (CONF_ATT__MEMPOOL__MAX_BYTES, "mempool.max-bytess", &conf->mempool->max_bytes, UINT16_T), (CONF_ATT__MEMPOOL__MAX_ELEMENTS, "mempool.max-elements", &conf->mempool->max_elements, UINT16_T), (CONF_ATT__MEMPOOL__SMP_RING_SIZE, "mempool.smp-ring-size", &conf->mempool->smp_ring_size, UINT32_T ), (CONF_ATT__FORWARD__ENABLE, "forward.enable", &conf->forward->is_enable, BOOL), (CONF_ATT__FORWARD__OUTPUT_NIC,"forward.output-nic", &conf->forward->output_nic, CHAR_STAR), (CONF_ATT__FORWARD__SNAP_LEN, "forward.snap-len", &conf->forward->snap_len, UINT16_T), (CONF_ATT__FORWARD__NB_COPIES, "forward.nb-copies", &conf->forward->nb_copies, UINT32_T), (CONF_ATT__FORWARD__PROMISC, "forward.promisc", &conf->forward->promisc, UINT16_T) ),DECLARE_CONF_ATT( (CONF_ATT__NONE, "no-support", NULL, NO_SUPPORT), //general (CONF_ATT__STACK_TYPE, "stack-type", &conf->stack_type, UINT32_T), (CONF_ATT__INPUT__DPDK_OPTION, "dpdk-option", &conf->dpdk_options, CHAR_STAR), //input (CONF_ATT__INPUT__MODE, "input.mode", &conf->input->input_mode, UINT16_T), (CONF_ATT__INPUT__SOURCE, "input.source", &conf->input->input_source, CHAR_STAR), (CONF_ATT__INPUT__SNAP_LEN, "input.snap-len", &conf->input->snap_len, UINT16_T), //output (CONF_ATT__OUTPUT__ENABLE, "output.enable", &conf->output->is_enable, BOOL), (CONF_ATT__OUTPUT__OUTPUT_DIR, "output.output-dir", &conf->output->output_dir, CHAR_STAR), (CONF_ATT__OUTPUT__REPORT_DESCRIPTION,"output.report-description", &conf->output->is_report_description, BOOL), (CONF_ATT__OUTPUT__SAMPLE_INTERVAL, "output.sample-interval", &conf->output->sample_interval, UINT16_T), //engine (CONF_ATT__ENGINE__THREAD_NB, "engine.thread-nb", &conf->engine->threads_size, UINT16_T), (CONF_ATT__ENGINE__EXCLUDE_RULES, "engine.exclude-rules", &conf->engine->excluded_rules, CHAR_STAR), (CONF_ATT__ENGINE__RULES_MASK, "engine.rules-mask", &conf->engine->rules_mask, CHAR_STAR), (CONF_ATT__ENGINE__MAX_INSTANCES, "engine.max-instances", &conf->engine->max_instances, UINT32_T ), (CONF_ATT__MEMPOOL__MAX_MESSAGE_SIZE, "mempool.max-message-size", &conf->mempool->max_message_size, UINT32_T), (CONF_ATT__MEMPOOL__MAX_BYTES, "mempool.max-bytess", &conf->mempool->max_bytes, UINT16_T), (CONF_ATT__MEMPOOL__MAX_ELEMENTS, "mempool.max-elements", &conf->mempool->max_elements, UINT16_T), (CONF_ATT__MEMPOOL__SMP_RING_SIZE, "mempool.smp-ring-size", &conf->mempool->smp_ring_size, UINT32_T ), (CONF_ATT__FORWARD__ENABLE, "forward.enable", &conf->forward->is_enable, BOOL), (CONF_ATT__FORWARD__OUTPUT_NIC,"forward.output-nic", &conf->forward->output_nic, CHAR_STAR), (CONF_ATT__FORWARD__SNAP_LEN, "forward.snap-len", &conf->forward->snap_len, UINT16_T), (CONF_ATT__FORWARD__NB_COPIES, "forward.nb-copies", &conf->forward->nb_copies, UINT32_T), (CONF_ATT__FORWARD__PROMISC, "forward.promisc", &conf->forward->promisc, UINT16_T) )
)
{...}
:
DECLARE_CONF_ATT( (CONF_ATT__NONE, "no-support", NULL, NO_SUPPORT), //general (CONF_ATT__STACK_TYPE, "stack-type", &conf->stack_type, UINT32_T), (CONF_ATT__INPUT__DPDK_OPTION, "dpdk-option", &conf->dpdk_options, CHAR_STAR), //input (CONF_ATT__INPUT__MODE, "input.mode", &conf->input->input_mode, UINT16_T), (CONF_ATT__INPUT__SOURCE, "input.source", &conf->input->input_source, CHAR_STAR), (CONF_ATT__INPUT__SNAP_LEN, "input.snap-len", &conf->input->snap_len, UINT16_T), //output (CONF_ATT__OUTPUT__ENABLE, "output.enable", &conf->output->is_enable, BOOL), (CONF_ATT__OUTPUT__OUTPUT_DIR, "output.output-dir", &conf->output->output_dir, CHAR_STAR), (CONF_ATT__OUTPUT__REPORT_DESCRIPTION,"output.report-description", &conf->output->is_report_description, BOOL), (CONF_ATT__OUTPUT__SAMPLE_INTERVAL, "output.sample-interval", &conf->output->sample_interval, UINT16_T), //engine (CONF_ATT__ENGINE__THREAD_NB, "engine.thread-nb", &conf->engine->threads_size, UINT16_T), (CONF_ATT__ENGINE__EXCLUDE_RULES, "engine.exclude-rules", &conf->engine->excluded_rules, CHAR_STAR), (CONF_ATT__ENGINE__RULES_MASK, "engine.rules-mask", &conf->engine->rules_mask, CHAR_STAR), (CONF_ATT__ENGINE__MAX_INSTANCES, "engine.max-instances", &conf->engine->max_instances, UINT32_T ), (CONF_ATT__MEMPOOL__MAX_MESSAGE_SIZE, "mempool.max-message-size", &conf->mempool->max_message_size, UINT32_T), (CONF_ATT__MEMPOOL__MAX_BYTES, "mempool.max-bytess", &conf->mempool->max_bytes, UINT16_T), (CONF_ATT__MEMPOOL__MAX_ELEMENTS, "mempool.max-elements", &conf->mempool->max_elements, UINT16_T), (CONF_ATT__MEMPOOL__SMP_RING_SIZE, "mempool.smp-ring-size", &conf->mempool->smp_ring_size, UINT32_T ), (CONF_ATT__FORWARD__ENABLE, "forward.enable", &conf->forward->is_enable, BOOL), (CONF_ATT__FORWARD__OUTPUT_NIC,"forward.output-nic", &conf->forward->output_nic, CHAR_STAR), (CONF_ATT__FORWARD__SNAP_LEN, "forward.snap-len", &conf->forward->snap_len, UINT16_T), (CONF_ATT__FORWARD__NB_COPIES, "forward.nb-copies", &conf->forward->nb_copies, UINT32_T), (CONF_ATT__FORWARD__PROMISC, "forward.promisc", &conf->forward->promisc, UINT16_T) )DECLARE_CONF_ATT( (CONF_ATT__NONE, "no-support", NULL, NO_SUPPORT), //general (CONF_ATT__STACK_TYPE, "stack-type", &conf->stack_type, UINT32_T), (CONF_ATT__INPUT__DPDK_OPTION, "dpdk-option", &conf->dpdk_options, CHAR_STAR), //input (CONF_ATT__INPUT__MODE, "input.mode", &conf->input->input_mode, UINT16_T), (CONF_ATT__INPUT__SOURCE, "input.source", &conf->input->input_source, CHAR_STAR), (CONF_ATT__INPUT__SNAP_LEN, "input.snap-len", &conf->input->snap_len, UINT16_T), //output (CONF_ATT__OUTPUT__ENABLE, "output.enable", &conf->output->is_enable, BOOL), (CONF_ATT__OUTPUT__OUTPUT_DIR, "output.output-dir", &conf->output->output_dir, CHAR_STAR), (CONF_ATT__OUTPUT__REPORT_DESCRIPTION,"output.report-description", &conf->output->is_report_description, BOOL), (CONF_ATT__OUTPUT__SAMPLE_INTERVAL, "output.sample-interval", &conf->output->sample_interval, UINT16_T), //engine (CONF_ATT__ENGINE__THREAD_NB, "engine.thread-nb", &conf->engine->threads_size, UINT16_T), (CONF_ATT__ENGINE__EXCLUDE_RULES, "engine.exclude-rules", &conf->engine->excluded_rules, CHAR_STAR), (CONF_ATT__ENGINE__RULES_MASK, "engine.rules-mask", &conf->engine->rules_mask, CHAR_STAR), (CONF_ATT__ENGINE__MAX_INSTANCES, "engine.max-instances", &conf->engine->max_instances, UINT32_T ), (CONF_ATT__MEMPOOL__MAX_MESSAGE_SIZE, "mempool.max-message-size", &conf->mempool->max_message_size, UINT32_T), (CONF_ATT__MEMPOOL__MAX_BYTES, "mempool.max-bytess", &conf->mempool->max_bytes, UINT16_T), (CONF_ATT__MEMPOOL__MAX_ELEMENTS, "mempool.max-elements", &conf->mempool->max_elements, UINT16_T), (CONF_ATT__MEMPOOL__SMP_RING_SIZE, "mempool.smp-ring-size", &conf->mempool->smp_ring_size, UINT32_T ), (CONF_ATT__FORWARD__ENABLE, "forward.enable", &conf->forward->is_enable, BOOL), (CONF_ATT__FORWARD__OUTPUT_NIC,"forward.output-nic", &conf->forward->output_nic, CHAR_STAR), (CONF_ATT__FORWARD__SNAP_LEN, "forward.snap-len", &conf->forward->snap_len, UINT16_T), (CONF_ATT__FORWARD__NB_COPIES, "forward.nb-copies", &conf->forward->nb_copies, UINT32_T), (CONF_ATT__FORWARD__PROMISC, "forward.promisc", &conf->forward->promisc, UINT16_T) )
conf_get_identity_from_id
(
int
)
{...}
:
const identity_t*
conf_get_name_from_id
(
config_identity_t
)
{...}
:
const char*
conf_load_config
(
const char*
)
:
bool
conf_release
(
)
:
void
All occurrences
Please wait...
Page is in error, reload to recover