diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2010-06-03 02:23:36 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2010-06-03 02:23:36 +0000 |
commit | fa15217eced92bde6eba7af5079bd513bc3f7ec6 (patch) | |
tree | e9b5f5afd3f9f5af7b52db08b28dcc416ee4959e /epan/dissectors/packet-nfs.c | |
parent | 6d1db36944768f4d871ae9c8da0e68929360ff2a (diff) | |
download | wireshark-fa15217eced92bde6eba7af5079bd513bc3f7ec6.tar.gz |
From Cal Turney via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4832 :
Add field 'nfs.ops.count' in the detail pane of NFSv4 calls and replies that
displays the number of operations in NFSv4 COMPOUND requests/replies.
From me: change the blurb wording a bit.
svn path=/trunk/; revision=33069
Diffstat (limited to 'epan/dissectors/packet-nfs.c')
-rw-r--r-- | epan/dissectors/packet-nfs.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/epan/dissectors/packet-nfs.c b/epan/dissectors/packet-nfs.c index a4b2462788..63333beabe 100644 --- a/epan/dissectors/packet-nfs.c +++ b/epan/dissectors/packet-nfs.c @@ -266,6 +266,7 @@ static int hf_nfs_argop4 = -1; static int hf_nfs_resop4 = -1; static int hf_nfs_linktext4 = -1; static int hf_nfs_tag4 = -1; +static int hf_nfs_ops_count4 = -1; static int hf_nfs_component4 = -1; static int hf_nfs_clientid4 = -1; static int hf_nfs_ace4 = -1; @@ -8807,7 +8808,7 @@ dissect_nfs_argop4(tvbuff_t *tvb, int offset, packet_info *pinfo, ops = tvb_get_ntohl(tvb, offset+0); - fitem = proto_tree_add_text(tree, tvb, offset, 4, + fitem = proto_tree_add_uint_format(tree, hf_nfs_ops_count4, tvb, offset+0, 4, ops, "Operations (count: %u)", ops); offset += 4; @@ -9299,7 +9300,7 @@ dissect_nfs_resop4(tvbuff_t *tvb, int offset, packet_info *pinfo, ops = tvb_get_ntohl(tvb, offset+0); - fitem = proto_tree_add_text(tree, tvb, offset, 4, + fitem = proto_tree_add_uint_format(tree, hf_nfs_ops_count4, tvb, offset+0, 4, ops, "Operations (count: %u)", ops); offset += 4; @@ -10723,6 +10724,10 @@ proto_register_nfs(void) "Tag", "nfs.tag", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }}, + { &hf_nfs_ops_count4, { + "Operations", "nfs.ops.count", FT_UINT32, BASE_DEC, + NULL, 0, "Number of Operations", HFILL }}, + { &hf_nfs_clientid4, { "clientid", "nfs.clientid", FT_UINT64, BASE_HEX, NULL, 0, "Client ID", HFILL }}, |