aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-12-19 10:11:40 -0500
committerAnders Broman <a.broman58@gmail.com>2015-12-22 05:23:06 +0000
commitf2b8504740f3fd145a5504682c3788947e151606 (patch)
treecf82793b5becca1f2cd0d2064d3c361e8fe46b7e /epan/packet.h
parentebb7e000c6b4f2c954923ae26a57a36b665232c1 (diff)
Don't limit capture packet counts to a fixed set of protocols.
Kept backwards compatibility with GTK+ capture info dialog by keeping the protocols tracked hardcoded, but Qt should have more freedom. Change-Id: I497be71ec761d53f312e14858daa7152d01b8c72 Reviewed-on: https://code.wireshark.org/review/12724 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/packet.h')
-rw-r--r--epan/packet.h27
1 files changed, 1 insertions, 26 deletions
diff --git a/epan/packet.h b/epan/packet.h
index 9690238949..cc13140bf6 100644
--- a/epan/packet.h
+++ b/epan/packet.h
@@ -56,33 +56,8 @@ struct epan_range;
((guint)(offset) + (guint)(len) > (guint)(offset) && \
(guint)(offset) + (guint)(len) <= (guint)(captured_len))
-/*
- * GTK+ only.
- * If we add this to the Qt UI we should modernize the statistics we show.
- * At the very least we should remove or hide IPX and VINES.
- */
-typedef struct _packet_counts {
- gint sctp;
- gint tcp;
- gint udp;
- gint icmp;
- gint ospf;
- gint gre;
- gint netbios;
- gint ipx;
- gint vines;
- gint other;
- gint total;
- gint arp;
- gint i2c_event;
- gint i2c_data;
-} packet_counts;
-
-/** Number of packet counts. */
-#define PACKET_COUNTS_SIZE sizeof(packet_counts) / sizeof (gint)
-
typedef struct _capture_packet_info {
- packet_counts *counts;
+ GHashTable *counts;
} capture_packet_info_t;
extern void packet_init(void);