From f1ff3208a055f462e69c9ac7479271aecf784d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Wed, 1 Jun 2016 22:22:46 +0100 Subject: Move ip6_to_str_buf() to to_str.c and make it take the buffer length. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also make it use ws_inet_ntop6() (rather than implementing the string conversion ourselves). Remove ip6_to_str_buf_len(). Change-Id: I1eff3a8941e00987c2ff0c4dcfda13476af86191 Reviewed-on: https://code.wireshark.org/review/15692 Reviewed-by: João Valverde Reviewed-by: Michael Mann --- wiretap/wtap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wiretap') diff --git a/wiretap/wtap.h b/wiretap/wtap.h index 2a4d3ddb0a..6d257ea002 100644 --- a/wiretap/wtap.h +++ b/wiretap/wtap.h @@ -1321,7 +1321,7 @@ typedef struct hashipv4 { typedef struct hashipv6 { guint8 addr[16]; guint8 flags; /* B0 dummy_entry, B1 resolve, B2 If the address is used in the trace */ - gchar ip6[40]; + gchar ip6[46]; gchar name[MAXNAMELEN]; } hashipv6_t; -- cgit v1.2.3