1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-05 14:09:02 +00:00

Make HostGroupState in charge of expression parsing

This commit is contained in:
dmiller
2024-05-01 22:19:30 +00:00
parent b940270375
commit 9c15b1ed55
2 changed files with 48 additions and 24 deletions

View File

@@ -100,10 +100,11 @@ public:
/* Returns true iff the defer buffer is not yet full. */
bool defer(Target *t);
void undefer();
const char *next_expression();
Target *next_target();
bool get_next_host(struct sockaddr_storage *ss, size_t *sslen, struct addrset *exclude_group);
private:
int num_random;
bool process_next_expression();
const char *next_expression();
};
/* ports is used to pass information about what ports to use for host discovery */