diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2016-06-01 22:22:46 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-06-06 22:00:41 +0000 |
commit | f1ff3208a055f462e69c9ac7479271aecf784d79 (patch) | |
tree | 51809fa94142090dd57fbd7d006c60d1016da4b2 /wsutil | |
parent | 528edba87ae6a6ffd951bdd137421910ea88d964 (diff) |
Move ip6_to_str_buf() to to_str.c and make it take the buffer length.
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 <j@v6e.pt>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/inet_addr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wsutil/inet_addr.h b/wsutil/inet_addr.h index 1c9d1ab5cc..f0e10db100 100644 --- a/wsutil/inet_addr.h +++ b/wsutil/inet_addr.h @@ -28,6 +28,9 @@ #include "inet_ipv6.h" +#define WS_INET6_ADDRSTRLEN 46 + + WS_DLL_PUBLIC const gchar * ws_inet_ntop4(gconstpointer src, gchar *dst, guint dst_size); |