diff options
author | Michael Mann <mmann78@netscape.net> | 2015-01-08 11:54:36 -0500 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-01-09 05:58:59 +0000 |
commit | 456095c89dd5fe257ce86d5529179295ebf9151e (patch) | |
tree | b03b205ab311c7d4c25b0b7e345a42f75aaec774 /epan/to_str.h | |
parent | d296c75247b2b176e728cfdcf24a2f20d6fa2449 (diff) |
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 <hadrielk@yahoo.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/to_str.h')
-rw-r--r-- | epan/to_str.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 |