From 9141bd97001e4a728c88b2bc7507a2f8bd91cc90 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 22 Jan 2016 19:50:21 -0800 Subject: Add more fields to packet_info structure and use them. Add fields for the absolute time stamp (and another field for a presence flag for the absolute time stamp) and the packet encapsulation for the packet. This lets us remove the field for the packet encapsulation in the frame_data structure; do so. Change-Id: Ifb910a9a192414e2a53086f3f7b97f39ed36aa39 Reviewed-on: https://code.wireshark.org/review/13499 Reviewed-by: Guy Harris --- epan/packet_info.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'epan/packet_info.h') diff --git a/epan/packet_info.h b/epan/packet_info.h index a543c65ba0..f816d14459 100644 --- a/epan/packet_info.h +++ b/epan/packet_info.h @@ -46,9 +46,17 @@ #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 */ + nstime_t abs_ts; /**< Packet absolute time stamp */ + gint pkt_encap; /**< Per-packet encapsulation/data-link type */ frame_data *fd; union wtap_pseudo_header *pseudo_header; struct wtap_pkthdr *phdr; /**< Record metadata */ -- cgit v1.2.3