diff options
| author | 郑超 <[email protected]> | 2024-03-27 11:19:39 +0000 |
|---|---|---|
| committer | liuwentan <[email protected]> | 2024-03-27 11:19:39 +0000 |
| commit | 99f98abbcdf6a9ae2da51b99aaa8dbf70568a4ff (patch) | |
| tree | dd7b00ac76051ca16936a42eaa9e4f61a68ed043 /include | |
| parent | 35d60d06b5bf18a8adf95cb4cfb00df5ab3c02da (diff) | |
Feature/scan ip port together support endpoint objectv4.1.32
Diffstat (limited to 'include')
| -rw-r--r-- | include/maat.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/maat.h b/include/maat.h index 8b59faf..2b15321 100644 --- a/include/maat.h +++ b/include/maat.h @@ -118,8 +118,6 @@ int maat_options_set_caller_thread_number(struct maat_options *opts, size_t n_th int maat_options_set_accept_tags(struct maat_options *opts, const char *accept_tags); -int maat_options_set_rule_effect_interval_ms(struct maat_options *opts, int interval_ms); - int maat_options_set_rule_update_checking_interval_ms(struct maat_options *opts, int interval_ms); int maat_options_set_gc_timeout_ms(struct maat_options *opts, int interval_ms); @@ -264,8 +262,16 @@ int maat_scan_integer(struct maat *instance, int table_id, long long integer, struct maat_state *state); /** - * @param ip_addr: network ipv4 address + * @param ip_addr: ipv4 address in network order + * @param port: port in host order. If the port is not specified, use -1. Note that 0 is a valid port. */ +int maat_scan_ipv4_port(struct maat *instance, int table_id, uint32_t ip_addr, int port, + long long *results, size_t n_result, size_t *n_hit_result, + struct maat_state *state); + +int maat_scan_ipv6_port(struct maat *instance, int table_id, uint8_t *ip_addr, int port, + long long *results, size_t n_result, size_t *n_hit_result, + struct maat_state *state); int maat_scan_ipv4(struct maat *instance, int table_id, uint32_t ip_addr, long long *results, size_t n_result, size_t *n_hit_result, struct maat_state *state); |
