Wireshark-bugs: [Wireshark-bugs] [Bug 4832] Add field 'nfs.ops.count' in the detail pane of NFSv
Date: Wed, 2 Jun 2010 15:56:21 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4832

--- Comment #3 from Cal Turney <turney_cal@xxxxxxx> 2010-06-02 15:56:20 PDT ---
(From update of attachment 4734)
>Index: epan/dissectors/packet-nfs.c
>===================================================================
>--- epan/dissectors/packet-nfs.c	(revision 33050)
>+++ epan/dissectors/packet-nfs.c	(working copy)
>@@ -266,6 +266,7 @@
> 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 @@
> 
> 	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 @@
> 
> 	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 +10740,10 @@
             "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 OPs", HFILL }},
+
         { &hf_nfs_clientid4, {
             "clientid", "nfs.clientid", FT_UINT64, BASE_HEX,
             NULL, 0, "Client ID", HFILL }},

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.