1
0
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:
david
2013-01-22 00:01:08 +00:00
parent d04f16eb32
commit e1fba2d663
8 changed files with 813 additions and 652 deletions

View File

@@ -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() */