[FEATURE]plugin table support ip_addr key type
This commit is contained in:
@@ -147,9 +147,14 @@ int maat_plugin_table_ex_schema_register(struct maat *instance, const char *tabl
|
||||
maat_ex_free_func_t *free_func,
|
||||
maat_ex_dup_func_t *dup_func,
|
||||
long argl, void *argp);
|
||||
/* returned data is duplicated by dup_func of maat_plugin_table_ex_schema_register,
|
||||
caller is responsible to free the data. */
|
||||
void *maat_plugin_table_get_ex_data(struct maat *instance, int table_id, const char *key);
|
||||
/**
|
||||
* returned data is duplicated by dup_func of maat_plugin_table_ex_schema_register,
|
||||
* caller is responsible to free the data.
|
||||
* NOTE: support three key type(integer, pointer, ip_addr) specified in table_info.conf
|
||||
* if use ip_addr key type, then key should be ip address in network order.
|
||||
*/
|
||||
void *maat_plugin_table_get_ex_data(struct maat *instance, int table_id,
|
||||
const char *key, size_t key_len);
|
||||
|
||||
int maat_ip_plugin_table_get_ex_data(struct maat *instance, int table_id,
|
||||
const struct ip_addr *ip, void **ex_data_array,
|
||||
|
||||
Reference in New Issue
Block a user