diff options
author | Evan Huus <eapache@gmail.com> | 2013-11-05 17:48:48 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-11-05 17:48:48 +0000 |
commit | 389423aaaac460f5b0fcbaf37b4f3d5cd7941c5b (patch) | |
tree | 7ad4c2fcd1bb606b9c88d33e6489650aafe4f661 /epan/dissectors/packet-btrfcomm.h | |
parent | d04079eedc5e7ea91b3ca940ce43d7fa4dd47856 (diff) | |
download | wireshark-389423aaaac460f5b0fcbaf37b4f3d5cd7941c5b.tar.gz wireshark-389423aaaac460f5b0fcbaf37b4f3d5cd7941c5b.tar.bz2 wireshark-389423aaaac460f5b0fcbaf37b4f3d5cd7941c5b.zip |
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.h | 2 |
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; |