aboutsummaryrefslogtreecommitdiffstats
path: root/epan/to_str.h
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-10-29 11:25:30 +0000
committerJoão Valverde <j@v6e.pt>2017-10-29 15:15:31 +0000
commit7507b11ec4440b8183a10113f5b33f56e6202c0e (patch)
treed3ab4591693625726d14f50dfe75f6d648985292 /epan/to_str.h
parentde1b26a3c6fa27b29157e86a6da03f354586badb (diff)
Improve our ip6_to_str_buf() implementation
Change-Id: I02b5d01797e526299a6dc5a031662cb78e4f8423 Reviewed-on: https://code.wireshark.org/review/24163 Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'epan/to_str.h')
-rw-r--r--epan/to_str.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/to_str.h b/epan/to_str.h
index 0a91d59c70..8d356ecbe8 100644
--- a/epan/to_str.h
+++ b/epan/to_str.h
@@ -90,7 +90,12 @@ WS_DLL_PUBLIC void address_to_str_buf(const address *addr, gchar *buf, int b
#define tvb_eui64_to_str(tvb, offset) tvb_address_to_str(wmem_packet_scope(), tvb, AT_EUI64, offset)
void ip_to_str_buf(const guint8 *ad, gchar *buf, const int buf_len);
-void ip6_to_str_buf(const ws_in6_addr *, gchar *, int buf_len);
+
+/* Returns length of the result. */
+int ip6_to_str_buf(const ws_in6_addr *ad, gchar *buf, int buf_size);
+
+/* Returns length of the result. Takes a prefix to be inserted before the address. */
+int ip6_to_str_buf_with_pfx(const ws_in6_addr *ad, gchar *buf, int buf_size, const char *prefix);
extern gchar* ipxnet_to_str_punct(wmem_allocator_t *scope, const guint32 ad, const char punct);
WS_DLL_PUBLIC gchar* eui64_to_str(wmem_allocator_t *scope, const guint64 ad);