diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-11-27 09:37:18 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-11-27 09:37:18 +0000 |
commit | f78a1f548b3cffe01d8c2554f6a388540d8a2426 (patch) | |
tree | 7df0ff27302310436d3b40ab240c40ec91a06a4b /packet-smb-pipe.c | |
parent | 5ebf118bf33ca1eb7e3e085df1c069595478af7e (diff) |
Rename the heuristic dissector table "msrpc" to "smb_transact", to
indicate that it's to be used for SMB transactions; a different table,
using different dissectors, would be needed for, say, reads and writes
over a named pipe, as those are byte streams and SMB transactions are
packets, so the dissectors for the first one need to worry about
multiple PDUs per segment and desegmentation, while the dissectors for
the second one don't - and, in fact, can't do desegmentation stuff.
svn path=/trunk/; revision=4286
Diffstat (limited to 'packet-smb-pipe.c')
-rw-r--r-- | packet-smb-pipe.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-smb-pipe.c b/packet-smb-pipe.c index c556afdbda..4db28b6d41 100644 --- a/packet-smb-pipe.c +++ b/packet-smb-pipe.c @@ -8,7 +8,7 @@ XXX Fixme : shouldnt show [malformed frame] for long packets * significant rewrite to tvbuffify the dissector, Ronnie Sahlberg and * Guy Harris 2001 * - * $Id: packet-smb-pipe.c,v 1.55 2001/11/26 04:52:51 hagbard Exp $ + * $Id: packet-smb-pipe.c,v 1.56 2001/11/27 09:37:18 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2523,7 +2523,7 @@ proto_register_pipe_lanman(void) proto_register_subtree_array(ett, array_length(ett)); } -static heur_dissector_list_t msrpc_heur_subdissector_list; +static heur_dissector_list_t smb_transact_heur_subdissector_list; static gboolean dissect_pipe_msrpc(tvbuff_t *d_tvb, packet_info *pinfo, proto_tree *parent_tree, @@ -2538,13 +2538,13 @@ dissect_pipe_msrpc(tvbuff_t *d_tvb, packet_info *pinfo, proto_tree *parent_tree, pinfo->private_data = &dcerpc_priv; - result = dissector_try_heuristic(msrpc_heur_subdissector_list, d_tvb, + result = dissector_try_heuristic(smb_transact_heur_subdissector_list, d_tvb, pinfo, parent_tree); pinfo->private_data = smb_priv; if (!result) - call_dissector(data_handle,d_tvb, pinfo, parent_tree); + call_dissector(data_handle, d_tvb, pinfo, parent_tree); return TRUE; } @@ -2552,7 +2552,7 @@ dissect_pipe_msrpc(tvbuff_t *d_tvb, packet_info *pinfo, proto_tree *parent_tree, void proto_register_pipe_msrpc(void) { - register_heur_dissector_list("msrpc", &msrpc_heur_subdissector_list); + register_heur_dissector_list("smb_transact", &smb_transact_heur_subdissector_list); } #define CALL_NAMED_PIPE 0x54 |