diff options
Diffstat (limited to 'ui/cli/tap-endpoints.c')
-rw-r--r-- | ui/cli/tap-endpoints.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/cli/tap-endpoints.c b/ui/cli/tap-endpoints.c index e9aa797502..1a6946d2fa 100644 --- a/ui/cli/tap-endpoints.c +++ b/ui/cli/tap-endpoints.c @@ -71,17 +71,19 @@ endpoints_draw(void *arg) for (i=0; (iu->hash.conv_array && i < iu->hash.conv_array->len); i++) { guint64 tot_frames; + gchar* conversation_str; host = &g_array_index(iu->hash.conv_array, hostlist_talker_t, i); tot_frames = host->rx_frames + host->tx_frames; if (tot_frames == last_frames) { + /* XXX - TODO: make name resolution configurable (through gbl_resolv_flags?) */ + conversation_str = (char*)get_conversation_address(NULL, &host->myaddress, TRUE); if (display_port) { printf("%-20s %5s %6" G_GINT64_MODIFIER "u %9" G_GINT64_MODIFIER "u %6" G_GINT64_MODIFIER "u %9" G_GINT64_MODIFIER "u %6" G_GINT64_MODIFIER "u %9" G_GINT64_MODIFIER "u \n", - /* XXX - TODO: make name resolution configurable (through gbl_resolv_flags?) */ - get_conversation_address(&host->myaddress, TRUE), + conversation_str, /* XXX - TODO: make port resolution configurable (through gbl_resolv_flags?) */ get_conversation_port(host->port, host->ptype, TRUE), host->tx_frames+host->rx_frames, host->tx_bytes+host->rx_bytes, @@ -92,12 +94,13 @@ endpoints_draw(void *arg) "u %6" G_GINT64_MODIFIER "u %9" G_GINT64_MODIFIER "u %6" G_GINT64_MODIFIER "u %9" G_GINT64_MODIFIER "u \n", /* XXX - TODO: make name resolution configurable (through gbl_resolv_flags?) */ - get_conversation_address(&host->myaddress, TRUE), + conversation_str, host->tx_frames+host->rx_frames, host->tx_bytes+host->rx_bytes, host->tx_frames, host->tx_bytes, host->rx_frames, host->rx_bytes); } + wmem_free(NULL, conversation_str); } } max_frames = last_frames; |