mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Merge r30416:30527 from /nmap-exp/david/ipv6-ranges.
This is a refactoring of target parsing that stores different types of target specifications as different classes. The eventual intention is to allow easy iteration over each specification for the purpose of IPv6 multicast host discovery.
This commit is contained in:
parent
d04f16eb32
commit
e1fba2d663
8 changed files with 813 additions and 652 deletions
|
|
@ -4514,7 +4514,7 @@ 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 */
|
||||
char *grab_next_host_spec(FILE *inputfd, bool random, int argc, char **fakeargv) {
|
||||
const char *grab_next_host_spec(FILE *inputfd, bool random, int argc, const char **fakeargv) {
|
||||
static char host_spec[1024];
|
||||
struct in_addr ip;
|
||||
size_t n;
|
||||
|
|
|
|||
|
|
@ -545,7 +545,7 @@ 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 */
|
||||
char *grab_next_host_spec(FILE *inputfd, bool random, int argc, char **fakeargv);
|
||||
const char *grab_next_host_spec(FILE *inputfd, bool random, int argc, const char **fakeargv);
|
||||
|
||||
#ifdef WIN32
|
||||
/* Convert a dnet interface name into the long pcap style. This also caches the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue