aboutsummaryrefslogtreecommitdiffstats
path: root/sharkd_session.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2017-10-29 14:29:27 -0400
committerMichael Mann <mmann78@netscape.net>2017-10-29 20:17:03 +0000
commit63966ec5d5b65cde2297f1f7417d288f884a80b2 (patch)
tree95833a554ec62bac1981ecc6d9a63bd047c735d2 /sharkd_session.c
parent765a67b68af28a6dbbb5c79d350896efbaa7adf4 (diff)
Use endpoint_type in conversation tables and hostlists
Follow up to having conversions use endpoint_type instead of port_type. Change-Id: Ifd59a33bd8b9a013c242bce5fcceb09533f02c17 Reviewed-on: https://code.wireshark.org/review/24172 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'sharkd_session.c')
-rw-r--r--sharkd_session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sharkd_session.c b/sharkd_session.c
index 258cc71dea..6e43bf1d64 100644
--- a/sharkd_session.c
+++ b/sharkd_session.c
@@ -1559,8 +1559,8 @@ sharkd_session_process_tap_conv_cb(void *arg)
if (proto_with_port)
{
- printf(",\"sport\":\"%s\"", (src_port = get_conversation_port(NULL, iui->src_port, iui->ptype, iu->resolve_port)));
- printf(",\"dport\":\"%s\"", (dst_port = get_conversation_port(NULL, iui->dst_port, iui->ptype, iu->resolve_port)));
+ printf(",\"sport\":\"%s\"", (src_port = get_conversation_port(NULL, iui->src_port, iui->etype, iu->resolve_port)));
+ printf(",\"dport\":\"%s\"", (dst_port = get_conversation_port(NULL, iui->dst_port, iui->etype, iu->resolve_port)));
wmem_free(NULL, src_port);
wmem_free(NULL, dst_port);
@@ -1607,7 +1607,7 @@ sharkd_session_process_tap_conv_cb(void *arg)
if (proto_with_port)
{
- printf(",\"port\":\"%s\"", (port_str = get_conversation_port(NULL, host->port, host->ptype, iu->resolve_port)));
+ printf(",\"port\":\"%s\"", (port_str = get_conversation_port(NULL, host->port, host->etype, iu->resolve_port)));
wmem_free(NULL, port_str);
}