From 456095c89dd5fe257ce86d5529179295ebf9151e Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Thu, 8 Jan 2015 11:54:36 -0500 Subject: disperse atalk-utils.[ch] The functionality was suiting for address_to_str.c and the #defines belong in packet-atalk.h. Kept the address structure with the "address string conversion", but that can probably be better cleaned up when the address to str as a whole is cleaned up. Would also consider making AT_ATALK an FT_ type as well. Change-Id: Ia534096c707e6fb94acdfee0d332beda6571c371 Reviewed-on: https://code.wireshark.org/review/6417 Petri-Dish: Hadriel Kaplan Reviewed-by: Anders Broman --- epan/to_str.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'epan/to_str.h') diff --git a/epan/to_str.h b/epan/to_str.h index 3e1edeb0bc..abbd771df0 100644 --- a/epan/to_str.h +++ b/epan/to_str.h @@ -68,6 +68,7 @@ void ip6_to_str_buf(const struct e_in6_addr *, gchar *); extern gchar* ipx_addr_to_str(const guint32, const guint8 *); extern gchar* ipxnet_to_str_punct(const guint32 ad, const char punct); WS_DLL_PUBLIC gchar* eui64_to_str(const guint64 ad); + WS_DLL_PUBLIC gchar* time_secs_to_str(wmem_allocator_t *scope, const gint32 time_val); gchar* time_secs_to_str_unsigned(wmem_allocator_t *scope, const guint32); WS_DLL_PUBLIC gchar* time_msecs_to_str(wmem_allocator_t *scope, gint32 time_val); @@ -94,6 +95,20 @@ WS_DLL_PUBLIC char *decode_bitfield_value(char *buf, const guint64 val, const gu WS_DLL_PUBLIC const gchar* port_type_to_str (port_type type); +/* + * Routines to take a DDP address and generate a string. + */ +/* + * Structure used to represent a DDP address; gives the layout of the + * data pointed to by an AT_ATALK "address" structure. + */ +struct atalk_ddp_addr { + guint16 net; + guint8 node; +}; + +extern gchar *atalk_addr_to_str(const struct atalk_ddp_addr *addrp); + /** Turn an address type retrieved from a tvb into a string. * * @param scope memory allocation scheme used -- cgit v1.2.3