diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2009-11-29 22:51:28 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2009-11-29 22:51:28 +0000 |
commit | 85748db18a6524d1d28424b46b586920f920e31a (patch) | |
tree | 94c675a199eb5434a37e24544e364a9e3e851ccf | |
parent | b7f5f3171d45db0a791b53cd70892dd10a9b4700 (diff) | |
download | wireshark-85748db18a6524d1d28424b46b586920f920e31a.tar.gz |
Provide some utility macros for commonly used frame data fields.
svn path=/trunk/; revision=31126
-rw-r--r-- | epan/frame_data.h | 3 |
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? */ |