From 7eb3e47fa49806ea2cf59f0fa009240fae049a2b Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 26 Dec 2018 18:26:24 -0800 Subject: Try to squeeze some bytes out of the frame_data structure. Make the time stamp precision a 4-bit bitfield, so, when combined with the other bitfields, we have 32 bits. That means we put the flags at the same structure level as the time stamp precision, so they can be combined; that gets rid of an extra "flags." for references to the flags. Put the two pointers next to each other, and after a multiple of 8 bytes worth of other fields, so that there's no padding before or between them. It's still not down to 64 bytes, which is the next lower power of 2, so there's more work to do. Change-Id: I6f3e9d9f6f48137bbee8f100c152d2c42adb8fbe Reviewed-on: https://code.wireshark.org/review/31213 Petri-Dish: Guy Harris Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris --- file_packet_provider.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file_packet_provider.c') diff --git a/file_packet_provider.c b/file_packet_provider.c index 826e275a49..8d77c3886b 100644 --- a/file_packet_provider.c +++ b/file_packet_provider.c @@ -88,5 +88,5 @@ cap_file_provider_set_user_comment(struct packet_provider_data *prov, frame_data /* insert new packet comment */ g_tree_replace(prov->frames_user_comments, fd, g_strdup(new_comment)); - fd->flags.has_user_comment = TRUE; + fd->has_user_comment = TRUE; } -- cgit v1.2.3