mirror of
https://github.com/nmap/nmap.git
synced 2026-01-27 16:49:01 +00:00
Merge 30432:30436 from /nmap-exp/david/ipv6-ranges.
This is simple IPv6 unicast ranges. For example, nmap -6 en.wikipedia.org/120 -sn The other, more complicated part of this overall change is automatic multicast scanning of large local subnets. That part isn't done yet.
This commit is contained in:
@@ -290,19 +290,6 @@ ServiceProbeMatch::~ServiceProbeMatch() {
|
||||
matchops_anchor = -1;
|
||||
}
|
||||
|
||||
/* Make a new allocated null-terminated string from the bytes [start, end). */
|
||||
static char *mkstr(const char *start, const char *end)
|
||||
{
|
||||
char *s;
|
||||
|
||||
assert(end >= start);
|
||||
s = (char *) safe_malloc(end - start + 1);
|
||||
memcpy(s, start, end - start);
|
||||
s[end - start] = '\0';
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
/* Realloc a malloc-allocated string and put a given prefix at the front. */
|
||||
static char *string_prefix(char *string, const char *prefix)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user