cleverca22
10/15/2016 - 9:25 PM

gistfile1.txt

(gdb) print *pinfo
$2 = {current_proto = 0x7fffdc7dbf1f "Tox"...fd = 0xc00000001
  printf("unable to decrypt packet %d\n",pinfo->fd->num);
[clever@amd-nixos:~/x/wireshark-2.2.0]$ diff -u ~/wireshark-2.0.5/epan/packet_info.h epan/packet_info.h
--- /home/clever/wireshark-2.0.5/epan/packet_info.h     2016-07-27 15:26:41.000000000 -0300
+++ epan/packet_info.h  2016-09-07 13:59:05.000000000 -0300
@@ -46,9 +46,19 @@
 #define P2P_DIR_UL  0
 #define P2P_DIR_DL  1

+/*
+ * Presence flags.
+ */
+#define PINFO_HAS_TS            0x00000001  /**< time stamp */
+
 typedef struct _packet_info {
   const char *current_proto;        /**< name of protocol currently being dissected */
   struct epan_column_info *cinfo;   /**< Column formatting information */
+  guint32 presence_flags;           /**< Presence flags for some items */
+  guint32 num;                      /**< Frame number */
+  nstime_t abs_ts;                  /**< Packet absolute time stamp */
+  nstime_t rel_ts;                  /**< Relative timestamp (yes, it can be negative) */
+  gint pkt_encap;                   /**< Per-packet encapsulation/data-link type */
   frame_data *fd;