Replace pinfo->layer_names as a string with pinfo->layers as a wmem_list of
authoreapache <eapache@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 5 Nov 2013 17:48:48 +0000 (17:48 +0000)
committereapache <eapache@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 5 Nov 2013 17:48:48 +0000 (17:48 +0000)
commit89d626763e7f6f9122d023ca1dc25d5c6564ae80
tree7ad4c2fcd1bb606b9c88d33e6489650aafe4f661
parent09fb08214fd64eefafa185d061ad373d7bf99d2d
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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@53089 f5534014-38df-0310-8fa8-9805f1628bb7
epan/dissectors/packet-btobex.c
epan/dissectors/packet-btrfcomm.c
epan/dissectors/packet-btrfcomm.h
epan/dissectors/packet-frame.c
epan/dissectors/packet-icmp.c
epan/dissectors/packet-icmp.h
epan/dissectors/packet-ip.c
epan/dissectors/packet-ip.h
epan/dissectors/packet-tcp.c
epan/packet.c
epan/packet_info.h