summaryrefslogtreecommitdiff
path: root/epan/packet_info.h
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2012-12-02 17:01:04 +0000
committerEvan Huus <eapache@gmail.com>2012-12-02 17:01:04 +0000
commitb9c6f71fe48857a1d077b3ce064fad880396067e (patch)
tree4ea8b5592f4aaeea56d720deefb3d5960f94f8e8 /epan/packet_info.h
parent2461373edd7260ffc2c540dd9682f92fd05f5ebb (diff)
downloadwireshark-b9c6f71fe48857a1d077b3ce064fad880396067e.tar.gz
Create a wmem pool in pinfo and use it for some address allocations.
A (better?) fix for https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8030 See also thread starting at: http://www.wireshark.org/lists/wireshark-dev/201212/msg00001.html svn path=/trunk/; revision=46331
Diffstat (limited to 'epan/packet_info.h')
-rw-r--r--epan/packet_info.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/packet_info.h b/epan/packet_info.h
index 369a09939d..450834fd7d 100644
--- a/epan/packet_info.h
+++ b/epan/packet_info.h
@@ -28,6 +28,7 @@
#include "frame_data.h"
#include "tvbuff.h"
#include "address.h"
+#include "wmem/wmem.h"
/* Also defined in wiretap/wtap.h */
#define P2P_DIR_UNKNOWN -1
@@ -212,6 +213,8 @@ typedef struct _packet_info {
GSList* dependent_frames; /**< A list of frames which this one depends on */
GSList *frame_end_routines;
+
+ wmem_allocator_t *pool; /**< Memory pool scoped to the pinfo struct */
} packet_info;
/**< For old code that hasn't yet been changed. */