Provide some utility macros for commonly used frame data fields.
authorJaap Keuter <jaap.keuter@xs4all.nl>
Sun, 29 Nov 2009 22:51:28 +0000 (22:51 -0000)
committerJaap Keuter <jaap.keuter@xs4all.nl>
Sun, 29 Nov 2009 22:51:28 +0000 (22:51 -0000)
svn path=/trunk/; revision=31126

epan/frame_data.h

index ad13fae12938bd2f4595352168ca992115803d07..a9c178625fa3d5092c623f43e6a232ff17f98d92 100644 (file)
@@ -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? */