mirror of
https://github.com/nmap/nmap.git
synced 2026-02-13 00:46:32 +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:
@@ -1176,9 +1176,9 @@ char errstr[256];
|
||||
* class NpingTargets, that stores the specs and will provide the targets
|
||||
* through calls to getNextTarget();
|
||||
* */
|
||||
char *next_spec=NULL;
|
||||
while ( (next_spec= grab_next_host_spec(NULL, false, argc, argv)) != NULL )
|
||||
o.targets.addSpec( next_spec );
|
||||
const char *next_spec=NULL;
|
||||
while ( (next_spec= grab_next_host_spec(NULL, false, argc, (const char **) argv)) != NULL )
|
||||
o.targets.addSpec( (char *) next_spec );
|
||||
|
||||
return OP_SUCCESS;
|
||||
} /* End of parseArguments() */
|
||||
|
||||
Reference in New Issue
Block a user