1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-05 22:19:03 +00:00

Make NetBlockRandomIPv4 responsible for tracking number of random addrs

This commit is contained in:
dmiller
2024-05-01 22:19:31 +00:00
parent 5829b53691
commit cc2b798375
4 changed files with 21 additions and 13 deletions

View File

@@ -100,11 +100,10 @@ public:
/* Returns true iff the defer buffer is not yet full. */
bool defer(Target *t);
void undefer();
const char *next_expression();
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 */