diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-12-26 18:26:24 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-12-27 04:34:29 +0000 |
commit | 7eb3e47fa49806ea2cf59f0fa009240fae049a2b (patch) | |
tree | d668ff9ceae57934fe33582457fc5169f6e764ba /epan/dissectors/packet-nfs.c | |
parent | c3a7986b86f5355e6bd1791f70b78c91bcdac247 (diff) |
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 <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-nfs.c')
-rw-r--r-- | epan/dissectors/packet-nfs.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-nfs.c b/epan/dissectors/packet-nfs.c index 574283413e..5398418692 100644 --- a/epan/dissectors/packet-nfs.c +++ b/epan/dissectors/packet-nfs.c @@ -1252,7 +1252,7 @@ nfs_name_snoop_fh(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int fh_of nfs_name_snoop_t *nns = NULL; /* if this is a new packet, see if we can register the mapping */ - if (!pinfo->fd->flags.visited) { + if (!pinfo->fd->visited) { key.key = 0; key.fh_length = fh_length; key.fh = (const unsigned char *)tvb_get_ptr(tvb, fh_offset, fh_length); @@ -2226,7 +2226,7 @@ dissect_fhandle_data(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree * if (nfs_fhandle_reqrep_matching && (!hidden) ) { nfs_fhandle_data_t *old_fhd = NULL; - if ( !pinfo->fd->flags.visited ) { + if ( !pinfo->fd->visited ) { nfs_fhandle_data_t fhd; /* first check if we have seen this fhandle before */ @@ -2547,7 +2547,7 @@ dissect_fhandle(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, /* are we snooping fh to filenames ?*/ - if ((!pinfo->fd->flags.visited) && nfs_file_name_snooping) { + if ((!pinfo->fd->visited) && nfs_file_name_snooping) { /* NFS v2 LOOKUP, CREATE, MKDIR calls might give us a mapping*/ if ( (civ->prog == 100003) @@ -2884,7 +2884,7 @@ dissect_diropargs(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tre ett_nfs2_diropargs, &diropargs_item, label); /* are we snooping fh to filenames ?*/ - if ((!pinfo->fd->flags.visited) && nfs_file_name_snooping) { + if ((!pinfo->fd->visited) && nfs_file_name_snooping) { /* v2 LOOKUP, CREATE, MKDIR calls might give us a mapping*/ if ( (civ->prog == 100003) @@ -3660,7 +3660,7 @@ dissect_nfs3_fh(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, ett_nfs3_fh, NULL, name); /* are we snooping fh to filenames ?*/ - if ((!pinfo->fd->flags.visited) && nfs_file_name_snooping) { + if ((!pinfo->fd->visited) && nfs_file_name_snooping) { /* NFS v3 LOOKUP, CREATE, MKDIR, READDIRPLUS calls might give us a mapping*/ if ( ((civ->prog == 100003) @@ -4269,7 +4269,7 @@ dissect_diropargs3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tr hf_nfs_name, name); /* are we snooping fh to filenames ?*/ - if ((!pinfo->fd->flags.visited) && nfs_file_name_snooping) { + if ((!pinfo->fd->visited) && nfs_file_name_snooping) { /* v3 LOOKUP, CREATE, MKDIR calls might give us a mapping*/ if ( (civ->prog == 100003) &&(civ->vers == 3) @@ -5533,7 +5533,7 @@ dissect_nfs3_entryplus(tvbuff_t *tvb, int offset, packet_info *pinfo, offset = dissect_nfs3_filename(tvb, offset, entry_tree, hf_nfs3_readdirplus_entry_name, &name); /* are we snooping fh to filenames ?*/ - if ((!pinfo->fd->flags.visited) && nfs_file_name_snooping) { + if ((!pinfo->fd->visited) && nfs_file_name_snooping) { /* v3 READDIRPLUS replies will give us a mapping */ if ( (civ->prog == 100003) &&(civ->vers == 3) |