e542b9c
diff -up wireshark-1.1.2/epan/dissectors/packet-nfs.c.orig wireshark-1.1.2/epan/dissectors/packet-nfs.c
e542b9c
--- wireshark-1.1.2/epan/dissectors/packet-nfs.c.orig	2009-02-15 08:22:57.000000000 -0500
e542b9c
+++ wireshark-1.1.2/epan/dissectors/packet-nfs.c	2009-02-15 08:31:28.000000000 -0500
e542b9c
@@ -652,6 +652,8 @@ static emem_tree_t *nfs_file_handles = N
e542b9c
 
e542b9c
 static int dissect_nfs_stateid4(tvbuff_t *tvb, int offset, proto_tree *tree);
e542b9c
 
e542b9c
+static void reg_callback(int cbprog);
e542b9c
+
e542b9c
 /* This function will store one nfs filehandle in our global tree of
e542b9c
  * filehandles.
e542b9c
  * We store all filehandles we see in this tree so that every unique
e542b9c
@@ -8648,6 +8650,7 @@ dissect_nfs_argop4(tvbuff_t *tvb, int of
e542b9c
 	proto_item *fitem;
e542b9c
 	proto_tree *ftree = NULL;
e542b9c
 	proto_tree *newftree = NULL;
e542b9c
+	int cbprog;
e542b9c
 
e542b9c
 	ops = tvb_get_ntohl(tvb, offset+0);
e542b9c
 
e542b9c
@@ -8969,6 +8972,8 @@ dissect_nfs_argop4(tvbuff_t *tvb, int of
e542b9c
 					hf_nfs_create_session_flags4, offset);
e542b9c
 			offset = dissect_rpc_chanattrs4(tvb, offset, newftree);
e542b9c
 			offset = dissect_rpc_chanattrs4(tvb, offset, newftree);
e542b9c
+			cbprog = tvb_get_ntohl(tvb, offset);
e542b9c
+			reg_callback(cbprog);
e542b9c
 			offset = dissect_rpc_uint32(tvb, newftree,
e542b9c
 					hf_nfs_cb_program, offset);
e542b9c
 			offset = dissect_rpc_secparms4(tvb, offset, newftree);
e542b9c
@@ -9612,6 +9617,313 @@ static const value_string layoutreturn_n
e542b9c
 	{ 0, NULL }
e542b9c
 };
e542b9c
 
e542b9c
+static const value_string layoutrecall_names[] = {
e542b9c
+	{ 1, "RECALL_FILE"},
e542b9c
+	{ 2, "RECALL_FSID"},
e542b9c
+	{ 3, "RECALL_ALL"},
e542b9c
+	{ 0, NULL }
e542b9c
+};
e542b9c
+
e542b9c
+/* NFS Callback */
e542b9c
+static int hf_nfs_cb_procedure = -1;
e542b9c
+static int hf_nfs_cb_argop = -1;
e542b9c
+static int hf_nfs_cb_resop = -1;
e542b9c
+static int hf_nfs_cb_truncate = -1;
e542b9c
+static int hf_nfs_cb_layoutrecall_type = -1;
e542b9c
+static int hf_nfs_cb_clorachanged = -1;
e542b9c
+
e542b9c
+static gint ett_nfs_cb_argop = -1;
e542b9c
+static gint ett_nfs_cb_resop = -1;
e542b9c
+static gint ett_nfs_cb_getattr = -1;
e542b9c
+static gint ett_nfs_cb_recall = -1;
e542b9c
+static gint ett_nfs_cb_layoutrecall = -1;
e542b9c
+static gint ett_nfs_cb_pushdeleg = -1;
e542b9c
+static gint ett_nfs_cb_recallany = -1;
e542b9c
+static gint ett_nfs_cb_recallableobjavail = -1;
e542b9c
+static gint ett_nfs_cb_recallslot = -1;
e542b9c
+static gint ett_nfs_cb_sequence = -1;
e542b9c
+static gint ett_nfs_cb_wantscancelled = -1;
e542b9c
+static gint ett_nfs_cb_notifylock = -1;
e542b9c
+static gint ett_nfs_cb_notifydeviceid = -1;
e542b9c
+static gint ett_nfs_cb_notify = -1;
e542b9c
+static gint ett_nfs_cb_illegal = -1;
e542b9c
+
e542b9c
+static const value_string names_nfs_cb_operation[] = {
e542b9c
+        {       NFS4_OP_CB_GETATTR,                             "CB_GETATTR" },
e542b9c
+        {       NFS4_OP_CB_RECALL,                              "CB_RECALL"     },
e542b9c
+        {       NFS4_OP_CB_LAYOUTRECALL,                        "CB_LAYOUTRECALL" },
e542b9c
+        {       NFS4_OP_CB_NOTIFY,                              "CB_NOTIFY" },
e542b9c
+        {       NFS4_OP_CB_PUSH_DELEG,                          "CB_PUSH_DELEG" },
e542b9c
+        {       NFS4_OP_CB_RECALL_ANY,                          "CB_RECALL_ANY" },
e542b9c
+        {       NFS4_OP_CB_RECALLABLE_OBJ_AVAIL,                "CB_RECALLABLE_OBJ_AVAIL" },
e542b9c
+        {       NFS4_OP_CB_RECALL_SLOT,                         "CB_RECALL_SLOT"},
e542b9c
+        {       NFS4_OP_CB_SEQUENCE,                            "CB_SEQUENCE"   },
e542b9c
+        {       NFS4_OP_CB_WANTS_CANCELLED,                     "CB_WANTS_CANCELLED" },
e542b9c
+        {       NFS4_OP_CB_NOTIFY_LOCK,                         "CB_NOTIFY_LOCK"},
e542b9c
+        {       NFS4_OP_CB_NOTIFY_DEVICEID,                     "CB_NOTIFY_DEVICEID"    },
e542b9c
+        {       NFS4_OP_CB_ILLEGAL,                             "CB_ILLEGAL"},
e542b9c
+        {       0,      NULL }
e542b9c
+};
e542b9c
+
e542b9c
+gint *nfs_cb_operation_ett[] =
e542b9c
+{
e542b9c
+         &ett_nfs_cb_getattr,
e542b9c
+         &ett_nfs_cb_recall,
e542b9c
+         &ett_nfs_cb_layoutrecall,
e542b9c
+         &ett_nfs_cb_notify,
e542b9c
+         &ett_nfs_cb_pushdeleg,
e542b9c
+         &ett_nfs_cb_recallany,
e542b9c
+         &ett_nfs_cb_recallableobjavail,
e542b9c
+         &ett_nfs_cb_recallslot,
e542b9c
+         &ett_nfs_cb_sequence,
e542b9c
+         &ett_nfs_cb_wantscancelled,
e542b9c
+         &ett_nfs_cb_notifylock,
e542b9c
+         &ett_nfs_cb_notifydeviceid,
e542b9c
+         &ett_nfs_cb_illegal
e542b9c
+};
e542b9c
+
e542b9c
+static int
e542b9c
+dissect_nfs_cb_layoutrecall(tvbuff_t *tvb, int offset, proto_tree *tree, packet_info *pinfo)
e542b9c
+{
e542b9c
+	guint recalltype = hf_nfs_layouttype4;
e542b9c
+
e542b9c
+	if (recalltype == 1) { /* RETURN_FILE */
e542b9c
+		offset = dissect_nfs_fh4(tvb, offset, pinfo, tree, "filehandle");  
e542b9c
+		offset = dissect_rpc_uint64(tvb, tree, hf_nfs_offset4, offset);
e542b9c
+		offset = dissect_rpc_uint64(tvb, tree, hf_nfs_length4, offset);
e542b9c
+		offset = dissect_nfs_stateid4(tvb, offset, tree);
e542b9c
+	} else if (recalltype == 2) { /* RETURN_FSID */
e542b9c
+		offset = dissect_nfs_fsid4(tvb, offset, tree, "fsid");
e542b9c
+	}
e542b9c
+
e542b9c
+	return offset;
e542b9c
+}
e542b9c
+
e542b9c
+static int
e542b9c
+dissect_nfs_cb_argop(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree)
e542b9c
+{
e542b9c
+	guint32 ops, ops_counter;
e542b9c
+	guint opcode;
e542b9c
+	proto_item *fitem;
e542b9c
+	proto_tree *ftree = NULL;
e542b9c
+	proto_tree *newftree = NULL;
e542b9c
+
e542b9c
+	ops = tvb_get_ntohl(tvb, offset+0);
e542b9c
+
e542b9c
+	fitem = proto_tree_add_text(tree, tvb, offset, 4, "Operations (count: %u)", ops);
e542b9c
+        offset += 4;
e542b9c
+
e542b9c
+	if (fitem)
e542b9c
+	  	ftree = proto_item_add_subtree(fitem, ett_nfs_cb_argop);
e542b9c
+
e542b9c
+	for (ops_counter=0; ops_counter
e542b9c
+	{
e542b9c
+		opcode = tvb_get_ntohl(tvb, offset);
e542b9c
+		if (check_col(pinfo->cinfo, COL_INFO))
e542b9c
+		  col_append_fstr(pinfo->cinfo, COL_INFO, "%c%s", ops_counter==0?' ':';',
e542b9c
+				  val_to_str(opcode, names_nfs_cb_operation, "Unknown"));
e542b9c
+
e542b9c
+		fitem = proto_tree_add_uint(ftree, hf_nfs_cb_argop, tvb, offset, 4, opcode);
e542b9c
+		offset += 4;
e542b9c
+
e542b9c
+	/* the opcodes are not contiguous */
e542b9c
+		if ((opcode < NFS4_OP_CB_GETATTR || opcode > NFS4_OP_CB_NOTIFY_DEVICEID) &&
e542b9c
+		    (opcode != NFS4_OP_CB_ILLEGAL))
e542b9c
+		  	break;
e542b9c
+
e542b9c
+	/* all of the V4 ops are contiguous, except for NFS4_OP_ILLEGAL */
e542b9c
+		if (opcode == NFS4_OP_CB_ILLEGAL)
e542b9c
+		  	newftree = proto_item_add_subtree(fitem, ett_nfs_cb_illegal);
e542b9c
+		else if (nfs_cb_operation_ett[opcode - 3])
e542b9c
+		  	newftree = proto_item_add_subtree(fitem, *nfs_cb_operation_ett[opcode - 3]);
e542b9c
+		else
e542b9c
+		  	break;
e542b9c
+  
e542b9c
+		switch (opcode)  
e542b9c
+		{
e542b9c
+		case NFS4_OP_CB_RECALL:
e542b9c
+		  	offset = dissect_nfs_stateid4(tvb, offset, newftree);
e542b9c
+			offset = dissect_rpc_bool(tvb, newftree, hf_nfs_cb_truncate, offset);
e542b9c
+			offset = dissect_nfs_fh4(tvb, offset, pinfo, newftree, "filehandle");
e542b9c
+			break;
e542b9c
+		case NFS4_OP_CB_GETATTR:
e542b9c
+		case NFS4_OP_CB_LAYOUTRECALL:
e542b9c
+		  	offset = dissect_rpc_uint32(tvb, newftree, hf_nfs_layouttype4, offset);
e542b9c
+			offset = dissect_rpc_uint32(tvb, newftree, hf_nfs_iomode4, offset);
e542b9c
+			offset = dissect_rpc_bool(tvb, newftree, hf_nfs_cb_clorachanged, offset);
e542b9c
+			offset = dissect_nfs_cb_layoutrecall(tvb, offset, newftree, pinfo);
e542b9c
+			break;
e542b9c
+		case NFS4_OP_CB_NOTIFY:
e542b9c
+		case NFS4_OP_CB_PUSH_DELEG:
e542b9c
+		case NFS4_OP_CB_RECALL_ANY:
e542b9c
+		case NFS4_OP_CB_RECALLABLE_OBJ_AVAIL:
e542b9c
+		case NFS4_OP_CB_RECALL_SLOT:
e542b9c
+		  break;
e542b9c
+		case NFS4_OP_CB_SEQUENCE:
e542b9c
+			offset = dissect_rpc_opaque_data(tvb, offset, newftree, NULL, hf_nfs_sessionid4, 
e542b9c
+							 TRUE, 16, FALSE, NULL, NULL);
e542b9c
+			offset = dissect_rpc_uint32(tvb, newftree, hf_nfs_seqid4, offset);
e542b9c
+			offset = dissect_rpc_uint32(tvb, newftree, hf_nfs_slotid4, offset);
e542b9c
+			offset = dissect_rpc_uint32(tvb, newftree, hf_nfs_slotid4, offset);
e542b9c
+			offset = dissect_rpc_bool(tvb, newftree, hf_nfs_cachethis4, offset);
e542b9c
+			/* skip refs -- assume 0 */
e542b9c
+			offset = offset + 4;
e542b9c
+			break;
e542b9c
+		case NFS4_OP_CB_WANTS_CANCELLED:
e542b9c
+		case NFS4_OP_CB_NOTIFY_LOCK:
e542b9c
+		case NFS4_OP_CB_NOTIFY_DEVICEID:
e542b9c
+		  	break;                        
e542b9c
+		case NFS4_OP_ILLEGAL:
e542b9c
+		  	break;
e542b9c
+		default:
e542b9c
+		  	break;
e542b9c
+		}
e542b9c
+	}
e542b9c
+
e542b9c
+	return offset;
e542b9c
+}
e542b9c
+
e542b9c
+static int
e542b9c
+dissect_nfs_cb_compound_call(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree* tree)
e542b9c
+{
e542b9c
+	char *tag=NULL;
e542b9c
+
e542b9c
+	offset = dissect_nfs_utf8string(tvb, offset, tree, hf_nfs_tag4, &tag;;
e542b9c
+
e542b9c
+	if (check_col(pinfo->cinfo, COL_INFO))
e542b9c
+		  col_append_fstr(pinfo->cinfo, COL_INFO," %s", tag);
e542b9c
+
e542b9c
+	offset = dissect_rpc_uint32(tvb, tree, hf_nfs_minorversion, offset);
e542b9c
+	offset = dissect_rpc_uint32(tvb, tree, hf_nfs_callback_ident, offset);
e542b9c
+	offset = dissect_nfs_cb_argop(tvb, offset, pinfo, tree);
e542b9c
+
e542b9c
+	return offset;
e542b9c
+}
e542b9c
+
e542b9c
+static int
e542b9c
+dissect_nfs_cb_resop(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree)
e542b9c
+{
e542b9c
+  	guint32 ops, ops_counter;
e542b9c
+	guint32 opcode;
e542b9c
+	proto_item *fitem;
e542b9c
+	proto_tree *ftree = NULL;
e542b9c
+	proto_tree *newftree = NULL;
e542b9c
+	guint32 status;
e542b9c
+
e542b9c
+	ops = tvb_get_ntohl(tvb, offset+0);
e542b9c
+	fitem = proto_tree_add_text(tree, tvb, offset, 4, "Operations (count: %u)", ops);
e542b9c
+	offset += 4;
e542b9c
+
e542b9c
+	if (fitem)
e542b9c
+	  	ftree = proto_item_add_subtree(fitem, ett_nfs_cb_resop);	
e542b9c
+
e542b9c
+	for (ops_counter = 0; ops_counter < ops; ops_counter++)
e542b9c
+	{
e542b9c
+		opcode = tvb_get_ntohl(tvb, offset);
e542b9c
+
e542b9c
+	/* sanity check for bogus packets */
e542b9c
+		if ((opcode < NFS4_OP_CB_GETATTR || opcode > NFS4_OP_CB_NOTIFY_DEVICEID) &&
e542b9c
+		    (opcode != NFS4_OP_ILLEGAL))
e542b9c
+			break;
e542b9c
+	  
e542b9c
+		if (check_col(pinfo->cinfo, COL_INFO))
e542b9c
+			col_append_fstr(pinfo->cinfo, COL_INFO, "%c%s",	ops_counter==0?' ':';',
e542b9c
+					val_to_str(opcode, names_nfs_cb_operation, "Unknown"));
e542b9c
+	  
e542b9c
+		fitem = proto_tree_add_uint(ftree, hf_nfs_cb_resop, tvb, offset, 4, opcode);
e542b9c
+		offset += 4;
e542b9c
+	  
e542b9c
+	  /* all of the V4 ops are contiguous, except for NFS4_OP_ILLEGAL */
e542b9c
+		if (opcode == NFS4_OP_ILLEGAL)
e542b9c
+		  newftree = proto_item_add_subtree(fitem, ett_nfs_illegal4);
e542b9c
+		else if (nfs_cb_operation_ett[opcode - 3])
e542b9c
+		  newftree = proto_item_add_subtree(fitem, *nfs_cb_operation_ett[opcode - 3]);
e542b9c
+		else
e542b9c
+		  break;
e542b9c
+
e542b9c
+		offset = dissect_nfs_nfsstat4(tvb, offset, newftree, &status);
e542b9c
+	  
e542b9c
+	  /* are there any ops that return data with a failure (?) */	   
e542b9c
+		if (status != NFS4_OK)
e542b9c
+			continue;
e542b9c
+
e542b9c
+	  /* These parsing routines are only executed if the status is NFS4_OK */
e542b9c
+		switch (opcode) 
e542b9c
+		{
e542b9c
+		case NFS4_OP_CB_RECALL:
e542b9c
+			break;
e542b9c
+		case NFS4_OP_CB_GETATTR:
e542b9c
+		case NFS4_OP_CB_LAYOUTRECALL:
e542b9c
+		    	break;
e542b9c
+		case NFS4_OP_CB_NOTIFY:
e542b9c
+		case NFS4_OP_CB_PUSH_DELEG:
e542b9c
+		case NFS4_OP_CB_RECALL_ANY:
e542b9c
+		case NFS4_OP_CB_RECALLABLE_OBJ_AVAIL:
e542b9c
+		case NFS4_OP_CB_RECALL_SLOT:
e542b9c
+			break;
e542b9c
+		case NFS4_OP_CB_SEQUENCE:
e542b9c
+			offset = dissect_rpc_opaque_data(tvb, offset, newftree, NULL,
e542b9c
+							 hf_nfs_sessionid4, TRUE, 16,
e542b9c
+							 FALSE, NULL, NULL);
e542b9c
+			offset = dissect_rpc_uint32(tvb, newftree, hf_nfs_seqid4, offset);
e542b9c
+			offset = dissect_rpc_uint32(tvb, newftree, hf_nfs_slotid4, offset);
e542b9c
+			offset = dissect_rpc_uint32(tvb, newftree, hf_nfs_slotid4, offset);
e542b9c
+			offset = dissect_rpc_uint32(tvb, newftree, hf_nfs_slotid4, offset);
e542b9c
+			break;
e542b9c
+		case NFS4_OP_CB_WANTS_CANCELLED:
e542b9c
+		case NFS4_OP_CB_NOTIFY_LOCK:
e542b9c
+		case NFS4_OP_CB_NOTIFY_DEVICEID:
e542b9c
+		    	break;
e542b9c
+		case NFS4_OP_ILLEGAL:
e542b9c
+			break;		  
e542b9c
+		default:
e542b9c
+		    	break;
e542b9c
+		  }
e542b9c
+	}
e542b9c
+
e542b9c
+	return offset;
e542b9c
+}
e542b9c
+
e542b9c
+static int
e542b9c
+dissect_nfs_cb_compound_reply(tvbuff_t *tvb, int offset, packet_info *pinfo,
e542b9c
+	proto_tree* tree)
e542b9c
+{
e542b9c
+	guint32 status;
e542b9c
+	char *tag=NULL;
e542b9c
+
e542b9c
+	offset = dissect_nfs_nfsstat4(tvb, offset, tree, &status);
e542b9c
+	offset = dissect_nfs_utf8string(tvb, offset, tree, hf_nfs_tag4, &tag;;
e542b9c
+	if (check_col(pinfo->cinfo, COL_INFO))
e542b9c
+		col_append_fstr(pinfo->cinfo, COL_INFO," %s", tag);
e542b9c
+
e542b9c
+	offset = dissect_nfs_cb_resop(tvb, offset, pinfo, tree);
e542b9c
+
e542b9c
+	return offset;
e542b9c
+}
e542b9c
+
e542b9c
+static const vsff nfs_cb_proc[] = {
e542b9c
+        { 0, "CB_NULL",
e542b9c
+	  dissect_nfs3_null_call, dissect_nfs3_null_reply },
e542b9c
+        { 1, "CB_COMPOUND",
e542b9c
+	  dissect_nfs_cb_compound_call, dissect_nfs_cb_compound_reply },
e542b9c
+        { 0, NULL, NULL, NULL }
e542b9c
+};
e542b9c
+
e542b9c
+static const value_string nfs_cb_proc_vals[] = {
e542b9c
+        { 0, "CB_NULL" },
e542b9c
+        { 1, "CB_COMPOUND" },
e542b9c
+        { 0, NULL }
e542b9c
+};
e542b9c
+
e542b9c
+void reg_callback(int cbprog) 
e542b9c
+{
e542b9c
+	/* Register the protocol as RPC */
e542b9c
+	rpc_init_prog(proto_nfs, cbprog, ett_nfs);
e542b9c
+	
e542b9c
+	/* Register the procedure tables */
e542b9c
+	rpc_init_proc_table(cbprog, 1, nfs_cb_proc, hf_nfs_cb_procedure);
e542b9c
+}
e542b9c
+
e542b9c
 void
e542b9c
 proto_register_nfs(void)
e542b9c
 {
e542b9c
@@ -10964,10 +11276,29 @@ proto_register_nfs(void)
e542b9c
 		{ &hf_nfs_cachethis4, {
e542b9c
 			"Cache this?", "nfs.cachethis4", FT_BOOLEAN, BASE_NONE,
e542b9c
 			TFS(&tfs_yes_no), 0, NULL, HFILL }},
e542b9c
-
e542b9c
+		 
e542b9c
+		{ &hf_nfs_cb_procedure, {
e542b9c
+		   "CB Procedure", "nfs.cb_procedure", FT_UINT32, BASE_DEC,
e542b9c
+		VALS(nfs_cb_proc_vals), 0, NULL, HFILL }},	
e542b9c
+		
e542b9c
+		{	  &hf_nfs_cb_argop, {
e542b9c
+		    "Opcode", "nfs.call.operation", FT_UINT32, BASE_DEC,
e542b9c
+		      VALS(names_nfs_cb_operation), 0, NULL, HFILL }},
e542b9c
+		  { &hf_nfs_cb_resop, {
e542b9c
+		      "Opcode", "nfs.reply.operation", FT_UINT32, BASE_DEC,
e542b9c
+			VALS(names_nfs_cb_operation), 0, NULL, HFILL }},	
e542b9c
 		{ &hf_nfs_lrs_present, {
e542b9c
 			"Stateid present?", "nfs.lrs_present", FT_BOOLEAN, BASE_NONE,
e542b9c
 			TFS(&tfs_yes_no), 0, NULL, HFILL }},
e542b9c
+		{ &hf_nfs_cb_truncate, {
e542b9c
+		    "Truncate?", "nfs.truncate", FT_BOOLEAN, BASE_NONE,
e542b9c
+		    TFS(&tfs_yes_no), 0, NULL, HFILL }},
e542b9c
+		{ &hf_nfs_cb_layoutrecall_type, {
e542b9c
+			"recall type", "nfs.recalltype", FT_UINT32, BASE_DEC,
e542b9c
+			VALS(layoutrecall_names), 0, NULL, HFILL }},
e542b9c
+		{ &hf_nfs_cb_clorachanged, {
e542b9c
+			"Clora changed", "nfs.clorachanged", FT_BOOLEAN, BASE_NONE,
e542b9c
+			TFS(&tfs_yes_no), 0, NULL, HFILL }},
e542b9c
 
e542b9c
 	/* Hidden field for v2, v3, and v4 status */
e542b9c
 		{ &hf_nfs_nfsstat, {
e542b9c
@@ -11132,8 +11463,23 @@ proto_register_nfs(void)
e542b9c
 		&ett_nfs_gid4,
e542b9c
 		&ett_nfs_service4,
e542b9c
 		&ett_nfs_sessionid4,
e542b9c
-		&ett_nfs_layoutseg,
e542b9c
-		&ett_nfs_layoutseg_fh
e542b9c
+		&ett_nfs_layoutseg,		
e542b9c
+		&ett_nfs_layoutseg_fh,
e542b9c
+		&ett_nfs_cb_argop,
e542b9c
+		&ett_nfs_cb_resop,
e542b9c
+		&ett_nfs_cb_getattr,
e542b9c
+		&ett_nfs_cb_recall,
e542b9c
+		&ett_nfs_cb_layoutrecall,
e542b9c
+		&ett_nfs_cb_pushdeleg,
e542b9c
+		&ett_nfs_cb_recallany,
e542b9c
+		&ett_nfs_cb_recallableobjavail,
e542b9c
+		&ett_nfs_cb_recallslot,
e542b9c
+		&ett_nfs_cb_sequence,
e542b9c
+		&ett_nfs_cb_wantscancelled,
e542b9c
+		&ett_nfs_cb_notifylock,
e542b9c
+		&ett_nfs_cb_notifydeviceid,
e542b9c
+		&ett_nfs_cb_notify,
e542b9c
+		&ett_nfs_cb_illegal,
e542b9c
 	};
e542b9c
 	module_t *nfs_module;
e542b9c
 
e542b9c
@@ -11169,9 +11515,9 @@ proto_register_nfs(void)
e542b9c
 	nfs_file_handles=se_tree_create(EMEM_TREE_TYPE_RED_BLACK, "nfs_file_handles");
e542b9c
 	nfs_fhandle_frame_table=se_tree_create(EMEM_TREE_TYPE_RED_BLACK, "nfs_fhandle_frame_table");
e542b9c
 	register_init_routine(nfs_name_snoop_init);
e542b9c
-
e542b9c
 }
e542b9c
 
e542b9c
+
e542b9c
 void
e542b9c
 proto_reg_handoff_nfs(void)
e542b9c
 {
e542b9c
@@ -11179,7 +11525,7 @@ proto_reg_handoff_nfs(void)
e542b9c
 
e542b9c
 	/* Register the protocol as RPC */
e542b9c
 	rpc_init_prog(proto_nfs, NFS_PROGRAM, ett_nfs);
e542b9c
-
e542b9c
+	
e542b9c
 	/* Register the procedure tables */
e542b9c
 	rpc_init_proc_table(NFS_PROGRAM, 2, nfs2_proc, hf_nfs_procedure_v2);
e542b9c
 	rpc_init_proc_table(NFS_PROGRAM, 3, nfs3_proc, hf_nfs_procedure_v3);
e542b9c
@@ -11208,7 +11554,4 @@ proto_reg_handoff_nfs(void)
e542b9c
 
e542b9c
 	fhandle_handle=create_dissector_handle(dissect_fhandle_data_unknown, proto_nfs);
e542b9c
 	dissector_add("nfs_fhandle.type", FHT_UNKNOWN, fhandle_handle);
e542b9c
-
e542b9c
-
e542b9c
 }
e542b9c
-
e542b9c
diff -up wireshark-1.1.2/epan/dissectors/packet-nfs.h.orig wireshark-1.1.2/epan/dissectors/packet-nfs.h
e542b9c
--- wireshark-1.1.2/epan/dissectors/packet-nfs.h.orig	2009-01-15 10:28:17.000000000 -0500
e542b9c
+++ wireshark-1.1.2/epan/dissectors/packet-nfs.h	2009-02-15 08:31:28.000000000 -0500
e542b9c
@@ -127,6 +127,23 @@
e542b9c
 
e542b9c
 #define NFS4_OP_ILLEGAL						10044
e542b9c
 
e542b9c
+/*
e542b9c
+ * NFSv41 callback ops
e542b9c
+ */
e542b9c
+#define NFS4_OP_CB_GETATTR						3
e542b9c
+#define NFS4_OP_CB_RECALL						4
e542b9c
+#define NFS4_OP_CB_LAYOUTRECALL						5
e542b9c
+#define NFS4_OP_CB_NOTIFY						6
e542b9c
+#define NFS4_OP_CB_PUSH_DELEG						7
e542b9c
+#define NFS4_OP_CB_RECALL_ANY						8
e542b9c
+#define NFS4_OP_CB_RECALLABLE_OBJ_AVAIL					9
e542b9c
+#define NFS4_OP_CB_RECALL_SLOT						10
e542b9c
+#define NFS4_OP_CB_SEQUENCE						11
e542b9c
+#define NFS4_OP_CB_WANTS_CANCELLED					12
e542b9c
+#define NFS4_OP_CB_NOTIFY_LOCK						13
e542b9c
+#define NFS4_OP_CB_NOTIFY_DEVICEID					14
e542b9c
+#define NFS4_OP_CB_ILLEGAL						10044
e542b9c
+
e542b9c
 /* for write */
e542b9c
 #define UNSTABLE 0
e542b9c
 #define DATA_SYNC 1