解决创建hash表时重复打印配置问题
This commit is contained in:
@@ -172,6 +172,18 @@ enum kni_deploy_mode{
|
||||
KNI_DEPLOY_MODE_NORMAL = 1,
|
||||
};
|
||||
|
||||
struct kni_htable_opt{
|
||||
int mho_screen_print_ctrl;
|
||||
int mho_thread_safe;
|
||||
int mho_mutex_num;
|
||||
int mho_hash_slot_size;
|
||||
int mho_hash_max_element_num;
|
||||
int mho_expire_time;
|
||||
char mho_eliminate_type[KNI_SYMBOL_MAX];
|
||||
void *free_data_cb;
|
||||
void *expire_notify_cb;
|
||||
};
|
||||
|
||||
int kni_addr_trans_v4(struct stream_tuple4_v4 *tuple4, char *output, int len);
|
||||
int kni_addr_trans_v6(struct stream_tuple4_v6 *tuple4, char *output, int len);
|
||||
uint16_t kni_ip_checksum(const void *buf, size_t hdr_len);
|
||||
@@ -186,4 +198,5 @@ char* kni_ipv4_errmsg_get(enum kni_ipv4hdr_parse_error _errno);
|
||||
char* kni_ipv6_errmsg_get(enum kni_ipv6hdr_parse_error _errno);
|
||||
char* kni_strdup(const char* s);
|
||||
|
||||
MESA_htable_handle kni_create_htable(const char *profile, const char *section, void *free_data_cb, void *expire_notify_cb, void *logger);
|
||||
MESA_htable_handle kni_create_htable(char *symbol, struct kni_htable_opt *opt, void *logger);
|
||||
void kni_get_htable_opt(struct kni_htable_opt *opt, const char *profile, const char *section, void *free_data_cb, void *expire_notify_cb, void *logger);
|
||||
Reference in New Issue
Block a user