aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ndmp.c
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2006-10-12 10:54:36 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2006-10-12 10:54:36 +0000
commit1b82f18b0161d1b5c34f7d48d748d19c0e587aea (patch)
treea4a542dc9212ba0f85b8f8cf6f5e9d6e27be8554 /epan/dissectors/packet-ndmp.c
parent3da1ac988e8260c0705b763e20f13381116a03fc (diff)
wireshark does not yet consume enough memory for me to be happy
pass conversation form the transports up to the scsi layer add tracking of conversation specific info to scsi osd add tracking of conversation+lun specific info to scsi osd for scsi osd add tracking of PARTITIONS and display in which frame they were created/removed git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19505 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ndmp.c')
-rw-r--r--epan/dissectors/packet-ndmp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ndmp.c b/epan/dissectors/packet-ndmp.c
index 8a352a2344..ee2f0f5187 100644
--- a/epan/dissectors/packet-ndmp.c
+++ b/epan/dissectors/packet-ndmp.c
@@ -272,6 +272,7 @@ typedef struct _ndmp_conv_data_t {
emem_tree_t *tasks; /* indexed by Sequence# */
emem_tree_t *itl; /* indexed by packet# */
ndmp_task_data_t *task;
+ conversation_t *conversation;
} ndmp_conv_data_t;
ndmp_conv_data_t *ndmp_conv_data=NULL;
static proto_tree *top_tree;
@@ -284,6 +285,7 @@ get_itl_nexus(ndmp_conv_data_t *ndmp_conv_data, packet_info *pinfo, gboolean cre
if(create_new || !(itl=se_tree_lookup32_le(ndmp_conv_data->itl, pinfo->fd->num))){
itl=se_alloc(sizeof(itl_nexus_t));
itl->cmdset=0xff;
+ itl->conversation=ndmp_conv_data->conversation;
se_tree_insert32(ndmp_conv_data->itl, pinfo->fd->num, itl);
}
return itl;
@@ -2882,6 +2884,7 @@ dissect_ndmp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
ndmp_conv_data->version=NDMP_PROTOCOL_UNKNOWN;
ndmp_conv_data->tasks=se_tree_create_non_persistent(EMEM_TREE_TYPE_RED_BLACK, "NDMP tasks");
ndmp_conv_data->itl=se_tree_create_non_persistent(EMEM_TREE_TYPE_RED_BLACK, "NDMP itl");
+ ndmp_conv_data->conversation=conversation;
conversation_add_proto_data(conversation, proto_ndmp, ndmp_conv_data);
}