mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Use POSIX-specified s6_addr element of struct in6_addr. http://seclists.org/nmap-dev/2015/q3/174
This commit is contained in:
parent
96d5b949b3
commit
aa359738c1
1 changed files with 1 additions and 1 deletions
|
|
@ -1334,7 +1334,7 @@ bool DNS::Factory::ipToPtr(const sockaddr_storage &ip, std::string &ptr)
|
|||
{
|
||||
ptr.clear();
|
||||
const struct sockaddr_in6 &s6 = (const struct sockaddr_in6 &) ip;
|
||||
const u8 * ipv6 = s6.sin6_addr.__in6_u.__u6_addr8;
|
||||
const u8 * ipv6 = s6.sin6_addr.s6_addr;
|
||||
for (short i=15; i>=0; --i)
|
||||
{
|
||||
char tmp[3];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue