[PATCH 06/13] show nfs_lrf_body_content as an entity

Tigran Mkrtchyan tigran.mkrtchyan at desy.de
Mon Jun 16 15:18:37 EDT 2008


---
 epan/dissectors/packet-nfs.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/epan/dissectors/packet-nfs.c b/epan/dissectors/packet-nfs.c
index 4d86e58..5f95826 100644
--- a/epan/dissectors/packet-nfs.c
+++ b/epan/dissectors/packet-nfs.c
@@ -410,6 +410,7 @@ static int hf_nfs_notification_bitmap4 = -1;
 static int hf_nfs_lrs_present = -1;
 static int hf_nfs_nfl_util = -1;
 static int hf_nfs_nfl_first_stripe_index = -1;
+static int hf_nfs_lrf_body_content = -1;
 
 /* Hidden field for v2, v3, and v4 status */
 int hf_nfs_nfsstat = -1;
@@ -7719,7 +7720,7 @@ dissect_nfs_layoutreturn4(tvbuff_t *tvb, int offset, proto_tree *tree)
 		offset = dissect_rpc_uint64(tvb, tree, hf_nfs_offset4, offset);
 		offset = dissect_rpc_uint64(tvb, tree, hf_nfs_length4, offset);
 		offset = dissect_nfs_stateid4(tvb, offset, tree);
-		offset = dissect_nfsdata(tvb, offset, tree, hf_nfs_data);
+		offset = dissect_nfsdata(tvb, offset, tree, hf_nfs_lrf_body_content);
 	}
 
 	return offset;
@@ -10065,6 +10066,10 @@ proto_register_nfs(void)
 			"return type", "nfs.returntype", FT_UINT32, BASE_DEC,
 			VALS(layoutreturn_names), 0, NULL, HFILL }},
 
+		{ &hf_nfs_lrf_body_content, {
+			"lrf_body_content", "nfs.lrf_body_content", FT_BYTES, BASE_HEX,
+			NULL, 0, NULL, HFILL }},
+
 		{ &hf_nfs_iomode4, {
 			"IO mode", "nfs.iomode", FT_UINT32, BASE_DEC,
 			VALS(iomode_names), 0, NULL, HFILL }},
-- 
1.5.4.5


--------------090206040200030309000502
Content-Type: text/x-patch;
 name="0007-do-not-re-use-v3-createmode.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="0007-do-not-re-use-v3-createmode.patch"



More information about the pNFS mailing list