From 0c9cfdcb0d28414c1b6ffe45da1a0b6b9aec4977 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Mon, 10 Jun 2019 15:32:20 +0200 Subject: Use nd_ipv6 rather than struct in6_addr --- addrtoname.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addrtoname.c') 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); /* -- cgit v1.2.1