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-icmp.h | |
parent | d04079eedc5e7ea91b3ca940ce43d7fa4dd47856 (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-icmp.h')
-rw-r--r-- | epan/dissectors/packet-icmp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-icmp.h b/epan/dissectors/packet-icmp.h index 93c1efb2e8..5e7917bec2 100644 --- a/epan/dissectors/packet-icmp.h +++ b/epan/dissectors/packet-icmp.h @@ -25,6 +25,8 @@ #ifndef __PACKET_ICMP_H__ #define __PACKET_ICMP_H__ +extern int proto_icmp; + /* ICMP echo request/reply transaction statistics ... used by ICMP tap(s) */ typedef struct _icmp_transaction_t { guint32 rqst_frame; |