diff options
author | Gerald Combs <gerald@wireshark.org> | 2018-05-14 17:23:34 -0700 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-05-16 04:26:36 +0000 |
commit | 9ec5b2b0fe60a1c70b1957452a8015896ad9d6ee (patch) | |
tree | 1741ca08e5bb1d699664b298da12090db1689bd2 /epan/capture_dissectors.c | |
parent | 62999cc6776e2b94e5a888ce77d6452a1020c660 (diff) |
Qt: Implement the capture info dialog.
Add back the capture info dialog. Draw sparklines for each protocol.
Update the User's Guide.
Bug: 12004
Change-Id: I45be8a0df4752255831a8b139ee84bb34d675ba9
Reviewed-on: https://code.wireshark.org/review/27565
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/capture_dissectors.c')
-rw-r--r-- | epan/capture_dissectors.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/capture_dissectors.c b/epan/capture_dissectors.c index 7ffc3d2def..ca2872b22f 100644 --- a/epan/capture_dissectors.c +++ b/epan/capture_dissectors.c @@ -162,7 +162,7 @@ gboolean call_capture_dissector(capture_dissector_handle_t handle, const guchar guint32 capture_dissector_get_count(packet_counts* counts, const int proto) { - capture_dissector_count_t* hash_count = (capture_dissector_count_t*)g_hash_table_lookup(counts->counts_hash, GUINT_TO_POINTER(proto)); + capture_dissector_count_t* hash_count = (capture_dissector_count_t*)g_hash_table_lookup(counts->counts_hash, GINT_TO_POINTER(proto)); if (hash_count == NULL) return 0; @@ -172,11 +172,11 @@ guint32 capture_dissector_get_count(packet_counts* counts, const int proto) void capture_dissector_increment_count(capture_packet_info_t *cpinfo, const int proto) { /* See if we already have a counter for the protocol */ - capture_dissector_count_t* hash_count = (capture_dissector_count_t*)g_hash_table_lookup(cpinfo->counts, GUINT_TO_POINTER(proto)); + capture_dissector_count_t* hash_count = (capture_dissector_count_t*)g_hash_table_lookup(cpinfo->counts, GINT_TO_POINTER(proto)); if (hash_count == NULL) { hash_count = g_new0(capture_dissector_count_t, 1); - g_hash_table_insert(cpinfo->counts, GUINT_TO_POINTER(proto), (gpointer)hash_count); + g_hash_table_insert(cpinfo->counts, GINT_TO_POINTER(proto), (gpointer)hash_count); } hash_count->count++; |