summaryrefslogtreecommitdiff
path: root/ui/gtk/conversations_usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk/conversations_usb.c')
-rw-r--r--ui/gtk/conversations_usb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/gtk/conversations_usb.c b/ui/gtk/conversations_usb.c
index e5d12160da..a77b3327ca 100644
--- a/ui/gtk/conversations_usb.c
+++ b/ui/gtk/conversations_usb.c
@@ -40,7 +40,9 @@ void register_tap_listener_usb_conversation(void);
static int
usb_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_, const void *vip _U_)
{
- add_conversation_table_data((conversations_table *)pct, &pinfo->src, &pinfo->dst, 0, 0, 1, pinfo->fd->pkt_len, &pinfo->rel_ts, SAT_NONE, PT_NONE);
+ conversations_table *ct = (conversations_table *) pct;
+
+ add_conversation_table_data(&ct->hash, &pinfo->src, &pinfo->dst, 0, 0, 1, pinfo->fd->pkt_len, &pinfo->rel_ts, CONV_TYPE_USB, PT_NONE);
return 1;
}
@@ -58,7 +60,7 @@ usb_conversation_init(const char *opt_arg, void* userdata _U_)
filter = NULL;
}
- init_conversation_table(TRUE, "USB", "usb", filter, usb_conversation_packet);
+ init_conversation_table(CONV_TYPE_USB, filter, usb_conversation_packet);
}
@@ -72,5 +74,5 @@ void
register_tap_listener_usb_conversation(void)
{
register_stat_cmd_arg("conv,usb", usb_conversation_init, NULL);
- register_conversation_table(TRUE, "USB", "usb", NULL /*filter*/, usb_conversation_packet);
+ register_conversation_table(CONV_TYPE_USB, NULL /*filter*/, usb_conversation_packet);
}