1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-27 18:09:01 +00:00

Move random address generation to TargetGroup/NetBlock

This commit is contained in:
dmiller
2024-05-01 22:19:29 +00:00
parent 019557382b
commit b940270375
8 changed files with 53 additions and 18 deletions

View File

@@ -533,9 +533,8 @@ int read_reply_pcap(pcap_t *pd, long to_usec,
size_t read_host_from_file(FILE *fp, char *buf, size_t n);
/* Return next target host specification from the supplied stream.
* if parameter "random" is set to true, then the function will
* return a random, non-reserved, IP address in decimal-dot notation */
const char *grab_next_host_spec(FILE *inputfd, bool random, int argc, const char **fakeargv);
*/
const char *grab_next_host_spec(FILE *inputfd, int argc, const char **fakeargv);
#ifdef WIN32
/* Convert a dnet interface name into the long pcap style. This also caches the