aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-btrfcomm.h
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-11-05 17:48:48 +0000
committerEvan Huus <eapache@gmail.com>2013-11-05 17:48:48 +0000
commit389423aaaac460f5b0fcbaf37b4f3d5cd7941c5b (patch)
tree7ad4c2fcd1bb606b9c88d33e6489650aafe4f661 /epan/dissectors/packet-btrfcomm.h
parentd04079eedc5e7ea91b3ca940ce43d7fa4dd47856 (diff)
Replace pinfo->layer_names as a string with pinfo->layers as a wmem_list of
protocol IDs. This is substantially more efficient, which means we can build it all the time rather than only if tree (in my benchmarks the extra time taken is not large enough to be statistically significant even over tens of thousands of packets). This fixes what was probably a bug in btobex that relied on layer_names for non-tree dissection. It also enables a much simpler fix for https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9303 svn path=/trunk/; revision=53089
Diffstat (limited to 'epan/dissectors/packet-btrfcomm.h')
-rw-r--r--epan/dissectors/packet-btrfcomm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-btrfcomm.h b/epan/dissectors/packet-btrfcomm.h
index 986c0d1eb2..78c2b83dae 100644
--- a/epan/dissectors/packet-btrfcomm.h
+++ b/epan/dissectors/packet-btrfcomm.h
@@ -24,6 +24,8 @@
#ifndef __PACKET_BTRFCOMM_H__
#define __PACKET_BTRFCOMM_H__
+extern int proto_btrfcomm;
+
typedef struct _btrfcomm_data_t {
guint32 interface_id;
guint32 adapter_id;