21 #include "ws_symbol_export.h"
25 #define GUID_STR_LEN 37
26 #define MAX_ADDR_STR_LEN 256
27 #define VINES_ADDR_LEN 6
28 #define EUI64_STR_LEN 24
29 #define AX25_ADDR_LEN 7
30 #define FCWWN_ADDR_LEN 8
59 WS_DLL_PUBLIC
const gchar *address_to_name(
const address *addr);
76 WS_DLL_PUBLIC
void address_to_str_buf(
const address *addr, gchar *buf,
int buf_len);
78 WS_DLL_PUBLIC
const gchar *port_type_to_str (port_type type);
84 WS_DLL_PUBLIC gchar* tvb_address_with_resolution_to_str(
wmem_allocator_t *scope,
tvbuff_t *tvb,
int type,
const gint offset);
86 #define tvb_ether_to_str(scope, tvb, offset) tvb_address_to_str(scope, tvb, AT_ETHER, offset)
88 #define tvb_ip_to_str(scope, tvb, offset) tvb_address_to_str(scope, tvb, AT_IPv4, offset)
90 #define tvb_ip6_to_str(scope, tvb, offset) tvb_address_to_str(scope, tvb, AT_IPv6, offset)
92 #define tvb_fcwwn_to_str(scope, tvb, offset) tvb_address_to_str(scope, tvb, AT_FCWWN, offset)
94 #define tvb_fc_to_str(scope, tvb, offset) tvb_address_to_str(scope, tvb, AT_FC, offset)
96 #define tvb_eui64_to_str(scope, tvb, offset) tvb_address_to_str(scope, tvb, AT_EUI64, offset)
125 #define ABS_TIME_TO_STR_SHOW_ZONE (1U << 0)
126 #define ABS_TIME_TO_STR_ADD_DQUOTES (1U << 1)
127 #define ABS_TIME_TO_STR_SHOW_UTC_ONLY (1U << 2)
133 #define abs_time_to_str(scope, nst, fmt, show_zone) \
134 abs_time_to_str_ex(scope, nst, fmt, (show_zone) ? ABS_TIME_TO_STR_SHOW_ZONE : 0)
143 #define abs_time_secs_to_str(scope, nst, fmt, show_zone) \
144 abs_time_secs_to_str_ex(scope, nst, fmt, (show_zone) ? ABS_TIME_TO_STR_SHOW_ZONE : 0)
146 WS_DLL_PUBLIC gchar *signed_time_secs_to_str(
wmem_allocator_t *scope,
const gint32 time_val);
148 WS_DLL_PUBLIC gchar *unsigned_time_secs_to_str(
wmem_allocator_t *scope,
const guint32);
150 WS_DLL_PUBLIC gchar *signed_time_msecs_to_str(
wmem_allocator_t *scope, gint32 time_val);
160 WS_DLL_PUBLIC gchar *guid_to_str_buf(
const e_guid_t *, gchar *,
int);
164 WS_DLL_PUBLIC
char *decode_bits_in_field(
wmem_allocator_t *scope,
const guint bit_offset,
const gint no_of_bits,
const guint64 value,
const guint encoding);
WS_DLL_PUBLIC gchar * tvb_address_to_str(wmem_allocator_t *scope, tvbuff_t *tvb, int type, const gint offset)
Definition: address_types.c:1077
WS_DLL_PUBLIC gchar * tvb_address_var_to_str(wmem_allocator_t *scope, tvbuff_t *tvb, address_type type, const gint offset, int length)
Definition: address_types.c:1102
field_display_e
Definition: proto.h:679
Definition: guid-utils.h:22
Definition: wmem_allocator.h:27
Definition: tvbuff-int.h:35