aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ncp2222.inc
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-09-03 10:33:12 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-09-03 10:33:12 +0000
commit11d77b940d693a9821ca1ec9febc5538c7e4731a (patch)
tree1c0bb040cbd4022d4c91c56160dc76dca922f005 /packet-ncp2222.inc
parent063cdb6bd1119e4cd87712d0b07e8db540fe70cc (diff)
Instead of having a single datum attached to a conversation, have a list
of protocol-id-plus-datum pairs, so that multiple protocols can attach information to the same conversation. Dissectors that attach information to a conversation should not assume that if they find a conversation it has one of its data attached to it; the conversation might've been created by another dissector. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3901 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ncp2222.inc')
-rw-r--r--packet-ncp2222.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/packet-ncp2222.inc b/packet-ncp2222.inc
index 281a08454f..55c3bbc254 100644
--- a/packet-ncp2222.inc
+++ b/packet-ncp2222.inc
@@ -7,10 +7,10 @@
*
* Gilbert Ramirez <gram@xiexie.org>
*
- * $Id: packet-ncp2222.inc,v 1.3 2001/06/28 02:42:48 gram Exp $
+ * $Id: packet-ncp2222.inc,v 1.4 2001/09/03 10:33:05 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 2000 Gerald Combs
*
* This program is free software; you can redistribute it and/or
@@ -180,12 +180,12 @@ dissect_ncp_request(tvbuff_t *tvb, packet_info *pinfo,
to have all packets over the same connection treated
as being part of a single conversation so that we can
let the user select that conversation to be displayed.) */
- conversation = find_conversation(&pi.src, &pi.dst,
+ conversation = find_conversation(&pinfo->src, &pinfo->dst,
PT_NCP, nw_connection, nw_connection, 0);
if (conversation == NULL) {
/* It's not part of any conversation - create a new one. */
- conversation = conversation_new(&pi.src, &pi.dst,
- PT_NCP, nw_connection, nw_connection, NULL, 0);
+ conversation = conversation_new(&pinfo->src, &pinfo->dst,
+ PT_NCP, nw_connection, nw_connection, 0);
}
ncp_hash_insert(conversation, sequence, 0x2222, ncp_rec);
}
@@ -255,7 +255,7 @@ dissect_ncp_reply(tvbuff_t *tvb, packet_info *pinfo,
const char *error_string;
/* Find the conversation whence the request would have come. */
- conversation = find_conversation(&pi.src, &pi.dst,
+ conversation = find_conversation(&pinfo->src, &pinfo->dst,
PT_NCP, nw_connection, nw_connection, 0);
if (conversation != NULL) {
/* find the record telling us the request made that caused