Add pcapng variables to wtap_pkthdr.
[obnox/wireshark/wip.git] / wiretap / wtap.h
index 1d002de72cd2abb3c7d91ff3cad9b2a241aeacff..d070f91fb36be5e03acda29517a5860b8dbfc00f 100644 (file)
@@ -822,9 +822,17 @@ struct wtap_nstime {
 
 struct wtap_pkthdr {
        struct wtap_nstime ts;
-       guint32 caplen;
-       guint32 len;
+       guint32                         caplen;                 /* data length in the file */
+       guint32                         len;                    /* data length on the wire */
        int pkt_encap;
+       /* pcapng variables */
+       guint32                         interface_id;   /* identifier of the interface. */
+       guint16                         drops_count;    /* drops count, only valid for packet block */
+                                                                               /* 0xffff if information not available */
+       /* options */
+       gchar                           *opt_comment;   /* NULL if not available */
+       guint64                         drop_count;
+       guint32                         pack_flags;     /* XXX - 0 for now (any value for "we don't have it"?) */
 };
 
 struct Buffer;