1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +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

@@ -101,7 +101,11 @@ public:
const std::list<struct sockaddr_storage> &get_unscanned_addrs(void) const;
/* is the current expression a named host */
int get_namedhost() const;
void generate_random_ips();
void generate_random_ips(int num_random);
void reject_last_host();
private:
std::list<NetBlock *>netblocks;
};
#endif /* TARGETGROUP_H */