17 #include <wsutil/inet_addr.h> 20 #include <epan/ipv6.h> 21 #include "ws_symbol_export.h" 22 #include "wmem/wmem.h" 24 #define GUID_STR_LEN 37 25 #define MAX_ADDR_STR_LEN 256 26 #define VINES_ADDR_LEN 6 27 #define EUI64_STR_LEN 24 28 #define AX25_ADDR_LEN 7 29 #define FCWWN_ADDR_LEN 8 42 WS_DLL_PUBLIC gchar* tvb_address_with_resolution_to_str(
wmem_allocator_t *scope,
tvbuff_t *tvb,
int type,
const gint offset);
53 WS_DLL_PUBLIC
const gchar *address_to_name(
const address *addr);
71 WS_DLL_PUBLIC
void address_to_str_buf(
const address *addr, gchar *buf,
int buf_len);
73 #define tvb_ether_to_str(tvb, offset) tvb_address_to_str(wmem_packet_scope(), tvb, AT_ETHER, offset) 74 #define tvb_ip_to_str(tvb, offset) tvb_address_to_str(wmem_packet_scope(), tvb, AT_IPv4, offset) 75 #define tvb_ip6_to_str(tvb, offset) tvb_address_to_str(wmem_packet_scope(), tvb, AT_IPv6, offset) 76 #define tvb_fcwwn_to_str(tvb, offset) tvb_address_to_str(wmem_packet_scope(), tvb, AT_FCWWN, offset) 77 #define tvb_fc_to_str(tvb, offset) tvb_address_to_str(wmem_packet_scope(), tvb, AT_FC, offset) 78 #define tvb_eui64_to_str(tvb, offset) tvb_address_to_str(wmem_packet_scope(), tvb, AT_EUI64, offset) 80 void ip_to_str_buf(
const guint8 *ad, gchar *buf,
const int buf_len);
83 int ip6_to_str_buf(
const ws_in6_addr *ad, gchar *buf,
int buf_size);
86 int ip6_to_str_buf_with_pfx(
const ws_in6_addr *ad, gchar *buf,
int buf_size,
const char *prefix);
88 extern gchar* ipxnet_to_str_punct(
wmem_allocator_t *scope,
const guint32 ad,
const char punct);
89 WS_DLL_PUBLIC gchar* eui64_to_str(
wmem_allocator_t *scope,
const guint64 ad);
93 WS_DLL_PUBLIC gchar* abs_time_secs_to_str(
wmem_allocator_t *scope,
const time_t,
const absolute_time_display_e fmt,
95 WS_DLL_PUBLIC
void display_epoch_time(gchar *,
int,
const time_t, gint32,
const to_str_time_res_t);
97 WS_DLL_PUBLIC
void display_signed_time(gchar *,
int,
const gint32, gint32,
const to_str_time_res_t);
99 WS_DLL_PUBLIC gchar* signed_time_secs_to_str(
wmem_allocator_t *scope,
const gint32 time_val);
100 WS_DLL_PUBLIC gchar* unsigned_time_secs_to_str(
wmem_allocator_t *scope,
const guint32);
101 WS_DLL_PUBLIC gchar* signed_time_msecs_to_str(
wmem_allocator_t *scope, gint32 time_val);
103 WS_DLL_PUBLIC
void guint32_to_str_buf(guint32 u, gchar *buf,
int buf_len);
104 WS_DLL_PUBLIC
void guint64_to_str_buf(guint64 u, gchar *buf,
int buf_len);
109 gchar* guid_to_str_buf(
const e_guid_t*, gchar*,
int);
111 WS_DLL_PUBLIC
char *decode_bits_in_field(
const guint bit_offset,
const gint no_of_bits,
const guint64 value);
113 WS_DLL_PUBLIC
const gchar* port_type_to_str (port_type type);
136 WS_DLL_PUBLIC gchar* tvb_address_var_to_str(
wmem_allocator_t *scope,
tvbuff_t *tvb, address_type type,
const gint offset,
int length);
147 WS_DLL_PUBLIC
char *guint8_to_hex(
char *out, guint8 val);
158 WS_DLL_PUBLIC
char *word_to_hex(
char *out, guint16 word);
169 WS_DLL_PUBLIC
char *dword_to_hex(
char *out, guint32 dword);
178 WS_DLL_PUBLIC
char *bytes_to_str(
wmem_allocator_t *scope,
const guint8 *bd,
int bd_len);
191 WS_DLL_PUBLIC gchar *bytestring_to_str(
wmem_allocator_t *scope,
const guint8 *ad,
const guint32 len,
const char punct);
202 WS_DLL_PUBLIC
char *bytes_to_hexstr(
char *out,
const guint8 *ad, guint32 len);
213 WS_DLL_PUBLIC
char *uint_to_str_back(
char *ptr, guint32 value);
Definition: inet_ipv6.h:20
Definition: tvbuff-int.h:35
Definition: guid-utils.h:21
Definition: wmem_allocator.h:26