diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2019-06-10 15:32:20 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2019-06-10 15:32:20 +0200 |
commit | 0c9cfdcb0d28414c1b6ffe45da1a0b6b9aec4977 (patch) | |
tree | 3ee20af2dd229149cf1c48e610ea35621a787e33 /addrtoname.c | |
parent | 6fc5b4200b5f1dfdca23bdcc4cca696e5e6df49d (diff) | |
download | tcpdump-0c9cfdcb0d28414c1b6ffe45da1a0b6b9aec4977.tar.gz |
Use nd_ipv6 rather than struct in6_addr
Diffstat (limited to 'addrtoname.c')
-rw-r--r-- | addrtoname.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addrtoname.c b/addrtoname.c index 1c80c39f..8e834d52 100644 --- a/addrtoname.c +++ b/addrtoname.c @@ -184,7 +184,7 @@ win32_gethostbyaddr(const char *addr, int len, int type) #endif /* _WIN32 */ struct h6namemem { - struct in6_addr addr; + nd_ipv6 addr; char *name; struct h6namemem *nxt; }; @@ -346,7 +346,7 @@ ip6addr_string(netdissect_options *ndo, const u_char *ap) { struct hostent *hp; union { - struct in6_addr addr; + nd_ipv6 addr; struct for_hash_addr { char fill[14]; uint16_t d; @@ -362,7 +362,7 @@ ip6addr_string(netdissect_options *ndo, const u_char *ap) if (memcmp(&p->addr, &addr, sizeof(addr)) == 0) return (p->name); } - p->addr = addr.addr; + memcpy(p->addr, addr.addr, sizeof(nd_ipv6)); p->nxt = newh6namemem(ndo); /* |