summaryrefslogtreecommitdiff
path: root/epan/frame_data.h
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2009-11-29 22:51:28 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2009-11-29 22:51:28 +0000
commit85748db18a6524d1d28424b46b586920f920e31a (patch)
tree94c675a199eb5434a37e24544e364a9e3e851ccf /epan/frame_data.h
parentb7f5f3171d45db0a791b53cd70892dd10a9b4700 (diff)
downloadwireshark-85748db18a6524d1d28424b46b586920f920e31a.tar.gz
Provide some utility macros for commonly used frame data fields.
svn path=/trunk/; revision=31126
Diffstat (limited to 'epan/frame_data.h')
-rw-r--r--epan/frame_data.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/frame_data.h b/epan/frame_data.h
index ad13fae129..a9c178625f 100644
--- a/epan/frame_data.h
+++ b/epan/frame_data.h
@@ -29,6 +29,9 @@
#include <epan/tvbuff.h>
#include <epan/nstime.h>
+#define PINFO_FD_NUM(pinfo) ((pinfo)->fd->num)
+#define PINFO_FD_VISITED(pinfo) ((pinfo)->fd->flags.visited)
+
/* XXX - some of this stuff is used only while a packet is being dissected;
should we keep that stuff in the "packet_info" structure, instead, to
save memory? */