diff options
author | Michael Mann <mmann78@netscape.net> | 2015-12-19 10:11:40 -0500 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-12-22 05:23:06 +0000 |
commit | f2b8504740f3fd145a5504682c3788947e151606 (patch) | |
tree | cf82793b5becca1f2cd0d2064d3c361e8fe46b7e /epan/dissectors/packet-vines.c | |
parent | ebb7e000c6b4f2c954923ae26a57a36b665232c1 (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/dissectors/packet-vines.c')
-rw-r--r-- | epan/dissectors/packet-vines.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/dissectors/packet-vines.c b/epan/dissectors/packet-vines.c index 7cafb52b2c..b7f523fb73 100644 --- a/epan/dissectors/packet-vines.c +++ b/epan/dissectors/packet-vines.c @@ -256,6 +256,7 @@ static gint ett_vines_rtp_control_flags = -1; static gint ett_vines_rtp_mtype = -1; static gint ett_vines_rtp_flags = -1; +static int proto_vines = -1; static int proto_vines_icp = -1; static int hf_vines_icp_exception_code = -1; static int hf_vines_icp_metric = -1; @@ -311,7 +312,7 @@ typedef struct _e_vipc { gboolean capture_vines(const guchar *pd _U_, int offset _U_, int len _U_, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_) { - cpinfo->counts->vines++; + capture_dissector_increment_count(cpinfo, proto_vines); return TRUE; } @@ -2004,6 +2005,8 @@ proto_register_vines_icp(void) proto_vines_icp = proto_register_protocol( "Banyan Vines ICP", "Vines ICP", "vines_icp"); + /* Placeholder for capture statistics */ + proto_vines = proto_register_protocol("VINES", "VINES", "vines"); proto_register_field_array(proto_vines_icp, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } |