mirror of
https://github.com/nmap/nmap.git
synced 2025-12-30 11:29:01 +00:00
o Nmap now understands the RFC 4007 percent syntax for IPv6 Zone IDs.
On Windows, this ID has to be a numeric index. On Linux and some
other OS's, this ID can instead be an interface name. Some examples
of this syntax:
fe80::20f:b0ff:fec6:15af%2
fe80::20f:b0ff:fec6:15af%eth0
This was a lot simpler than the method I previously implemented and posted
to nmap-dev. Now I just extract the zone ID from the already available
getaddrinfo() data rather than parsing it out myself.
This commit is contained in:
@@ -143,7 +143,7 @@ class TargetGroup {
|
||||
void Initialize();
|
||||
|
||||
#if HAVE_IPV6
|
||||
struct in6_addr ip6;
|
||||
struct sockaddr_in6 ip6;
|
||||
#endif
|
||||
|
||||
/* These 4 are used for the '/mask' style of specifying target
|
||||
|
||||
Reference in New Issue
Block a user