summaryrefslogtreecommitdiff
path: root/epan/frame_data.h
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2017-03-31 12:52:58 +0200
committerGuy Harris <guy@alum.mit.edu>2017-03-31 20:29:37 +0000
commit7dc065397a5a18715dd1cf70dc4cfbccb550fa90 (patch)
treeb0fefe0e534a4b5e3cf01860a31ec41766d95783 /epan/frame_data.h
parenta8ce98fc255482938b70142707e8fd40b134595e (diff)
downloadwireshark-7dc065397a5a18715dd1cf70dc4cfbccb550fa90.tar.gz
Optimize frame_data layout.
Move tsprec to remove padding. It saves 8 bytes on amd64, shrink size of frame_data structure from 96 to 88 bytes. Change-Id: Ib69687b2e5b7d65b5c15eda7d5834100a02c059e Reviewed-on: https://code.wireshark.org/review/20807 Petri-Dish: Jakub Zawadzki <darkjames-ws@darkjames.pl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/frame_data.h')
-rw-r--r--epan/frame_data.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/frame_data.h b/epan/frame_data.h
index dd443ca38d..7dd6cce1a6 100644
--- a/epan/frame_data.h
+++ b/epan/frame_data.h
@@ -69,6 +69,7 @@ typedef struct _frame_data {
guint32 cum_bytes; /**< Cumulative bytes into the capture */
gint64 file_off; /**< File offset */
guint16 subnum; /**< subframe number, for protocols that require this */
+ gint16 tsprec; /**< Time stamp precision */
struct {
unsigned int passed_dfilter : 1; /**< 1 = display, 0 = no display */
unsigned int dependent_of_displayed : 1; /**< 1 if a displayed frame depends on this frame */
@@ -83,7 +84,6 @@ typedef struct _frame_data {
unsigned int has_user_comment : 1; /** 1 = user set (also deleted) comment for this packet */
unsigned int need_colorize : 1; /**< 1 = need to (re-)calculate packet color */
} flags;
- gint16 tsprec; /**< Time stamp precision */
const struct _color_filter *color_filter; /**< Per-packet matching color_filter_t object */