2002-05-29 18:52:28 +00:00
|
|
|
/* packet-rmi.c
|
|
|
|
* Routines for java rmiregistry dissection
|
|
|
|
* Copyright 2002, Michael Stiller <ms@2scale.net>
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2002-05-29 18:52:28 +00:00
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2002-05-29 18:52:28 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2002-05-29 18:52:28 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2002-05-29 18:52:28 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
#include <epan/packet.h>
|
|
|
|
#include <epan/strutil.h>
|
|
|
|
|
|
|
|
#include "packet-rmi.h"
|
|
|
|
|
2003-02-05 06:16:32 +00:00
|
|
|
static void
|
2003-03-09 03:19:03 +00:00
|
|
|
dissect_ser(tvbuff_t *tvb, proto_tree *tree);
|
2003-02-05 06:16:32 +00:00
|
|
|
|
|
|
|
static rmi_type
|
|
|
|
get_rmi_type(const guchar *data, int datalen);
|
|
|
|
|
2002-05-29 18:52:28 +00:00
|
|
|
/* Initialize the protocol and registered fields */
|
|
|
|
static int proto_rmi = -1;
|
|
|
|
static int proto_ser = -1;
|
|
|
|
static int hf_rmi_magic = -1;
|
|
|
|
static int hf_rmi_version = -1;
|
|
|
|
static int hf_rmi_protocol = -1;
|
|
|
|
static int hf_rmi_inputmessage = -1;
|
|
|
|
static int hf_rmi_outputmessage = -1;
|
|
|
|
static int hf_rmi_epid_length = -1;
|
|
|
|
static int hf_rmi_epid_hostname = -1;
|
|
|
|
static int hf_rmi_epid_port = -1;
|
|
|
|
|
|
|
|
static int hf_ser_magic = -1;
|
|
|
|
static int hf_ser_version = -1;
|
|
|
|
|
|
|
|
/* Initialize the subtree pointers */
|
|
|
|
static gint ett_rmi = -1;
|
|
|
|
static gint ett_rmi_magic = -1;
|
|
|
|
static gint ett_rmi_version = -1;
|
|
|
|
static gint ett_rmi_inputmessage = -1;
|
|
|
|
static gint ett_rmi_outputmessage = -1;
|
|
|
|
static gint ett_rmi_epid_length = -1;
|
|
|
|
static gint ett_rmi_epid_hostname = -1;
|
|
|
|
static gint ett_rmi_epid_port = -1;
|
|
|
|
|
|
|
|
static gint ett_ser = -1;
|
2003-02-05 06:16:32 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* See
|
|
|
|
*
|
|
|
|
* http://java.sun.com/products/jdk/1.2/docs/guide/rmi/spec/rmi-protocol.doc1.html
|
|
|
|
*
|
|
|
|
* for RMI, and
|
|
|
|
*
|
|
|
|
* http://java.sun.com/products/jdk/1.2/docs/guide/serialization/spec/protocol.doc.html
|
|
|
|
*
|
|
|
|
* for the serialization protocol.
|
|
|
|
*/
|
2002-05-29 18:52:28 +00:00
|
|
|
|
|
|
|
#define TCP_PORT_RMI 1099
|
|
|
|
|
2003-02-05 06:16:32 +00:00
|
|
|
static const value_string rmi_protocol_str[] = {
|
|
|
|
{RMI_OUTPUTSTREAM_PROTOCOL_STREAM, "StreamProtocol"},
|
|
|
|
{RMI_OUTPUTSTREAM_PROTOCOL_SINGLEOP, "SingleOpProtocol"},
|
|
|
|
{RMI_OUTPUTSTREAM_PROTOCOL_MULTIPLEX, "MultiPlexProtocol"},
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string rmi_output_message_str[] = {
|
|
|
|
{RMI_OUTPUTSTREAM_MESSAGE_CALL, "Call"},
|
|
|
|
{RMI_OUTPUTSTREAM_MESSAGE_PING, "Ping"},
|
|
|
|
{RMI_OUTPUTSTREAM_MESSAGE_DGCACK, "DgcAck"},
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string rmi_input_message_str[] = {
|
|
|
|
{RMI_INPUTSTREAM_MESSAGE_ACK, "ProtocolAck"},
|
|
|
|
{RMI_INPUTSTREAM_MESSAGE_NOTSUPPORTED, "ProtocolNotSupported"},
|
|
|
|
{RMI_INPUTSTREAM_MESSAGE_RETURNDATA, "ReturnData"},
|
|
|
|
{RMI_INPUTSTREAM_MESSAGE_PINGACK, "PingAck"},
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
2002-05-29 18:52:28 +00:00
|
|
|
static void
|
|
|
|
dissect_rmi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|
|
|
{
|
|
|
|
proto_item *ti;
|
|
|
|
proto_tree *rmi_tree;
|
|
|
|
|
|
|
|
tvbuff_t *next_tvb;
|
|
|
|
|
|
|
|
gint offset;
|
|
|
|
gint next_offset;
|
|
|
|
int datalen;
|
2002-08-02 23:36:07 +00:00
|
|
|
const guchar *data;
|
2002-05-29 18:52:28 +00:00
|
|
|
|
|
|
|
guint16 version, len, port;
|
|
|
|
guint8 message, proto;
|
|
|
|
|
|
|
|
rmi_type rmitype;
|
|
|
|
|
2008-06-24 19:08:54 +00:00
|
|
|
char *epid_hostname;
|
|
|
|
guint epid_len;
|
2002-05-29 18:52:28 +00:00
|
|
|
|
|
|
|
offset = 0;
|
|
|
|
rmitype = 0;
|
|
|
|
|
|
|
|
/* Make entries in Protocol column and Info column on summary display */
|
2009-08-09 06:26:46 +00:00
|
|
|
col_set_str(pinfo->cinfo, COL_PROTOCOL, "RMI");
|
2002-05-29 18:52:28 +00:00
|
|
|
|
2002-07-17 06:55:29 +00:00
|
|
|
datalen = tvb_find_line_end(tvb, offset, -1, &next_offset, FALSE);
|
2002-05-29 18:52:28 +00:00
|
|
|
data = tvb_get_ptr(tvb, offset, datalen);
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-05-29 18:52:28 +00:00
|
|
|
rmitype = get_rmi_type(data, datalen);
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-05-29 18:52:28 +00:00
|
|
|
if (check_col(pinfo->cinfo, COL_INFO)) {
|
|
|
|
switch(rmitype) {
|
|
|
|
case RMI_OUTPUTSTREAM:
|
|
|
|
version = tvb_get_ntohs(tvb,4);
|
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO,
|
|
|
|
"JRMI, Version: %d, ", version);
|
|
|
|
|
|
|
|
proto = tvb_get_guint8(tvb, 6);
|
2002-08-28 21:04:11 +00:00
|
|
|
col_append_str(pinfo->cinfo, COL_INFO,
|
2002-05-29 18:52:28 +00:00
|
|
|
val_to_str(proto, rmi_protocol_str,
|
|
|
|
"Unknown protocol"));
|
|
|
|
break;
|
|
|
|
case RMI_OUTPUTMESSAGE:
|
|
|
|
message = tvb_get_guint8(tvb,0);
|
2007-10-23 05:50:00 +00:00
|
|
|
col_set_str(pinfo->cinfo, COL_INFO,
|
2002-05-29 18:52:28 +00:00
|
|
|
"JRMI, ");
|
|
|
|
col_append_str(pinfo->cinfo, COL_INFO,
|
|
|
|
val_to_str(message, rmi_output_message_str,
|
|
|
|
"Unknown message"));
|
|
|
|
break;
|
|
|
|
case RMI_INPUTSTREAM:
|
|
|
|
message = tvb_get_guint8(tvb,0);
|
2007-10-23 05:50:00 +00:00
|
|
|
col_set_str(pinfo->cinfo, COL_INFO,
|
2002-05-29 18:52:28 +00:00
|
|
|
"JRMI, ");
|
|
|
|
col_append_str(pinfo->cinfo, COL_INFO,
|
|
|
|
val_to_str(message, rmi_input_message_str,
|
|
|
|
"Unknown message"));
|
|
|
|
break;
|
|
|
|
case SERIALIZATION_DATA:
|
|
|
|
version = tvb_get_ntohs(tvb,2);
|
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO,
|
|
|
|
"Serialization data, Version: %d", version);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
col_set_str(pinfo->cinfo, COL_INFO, "Continuation");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (tree) {
|
|
|
|
ti = proto_tree_add_item(tree, proto_rmi, tvb, 0, -1, FALSE);
|
|
|
|
rmi_tree = proto_item_add_subtree(ti, ett_rmi);
|
|
|
|
switch(rmitype) {
|
|
|
|
case RMI_OUTPUTSTREAM:
|
2003-02-05 06:16:32 +00:00
|
|
|
/* XXX - uint, or string? */
|
2002-05-29 18:52:28 +00:00
|
|
|
proto_tree_add_uint(rmi_tree, hf_rmi_magic,
|
|
|
|
tvb, offset, 4, tvb_get_ntohl(tvb,0));
|
2003-02-05 06:16:32 +00:00
|
|
|
proto_tree_add_item(rmi_tree, hf_rmi_version,
|
|
|
|
tvb, offset + 4, 2, FALSE);
|
|
|
|
proto_tree_add_item(rmi_tree, hf_rmi_protocol,
|
|
|
|
tvb, offset + 6, 1, FALSE);
|
2002-05-29 18:52:28 +00:00
|
|
|
break;
|
|
|
|
case RMI_INPUTSTREAM:
|
|
|
|
message = tvb_get_guint8(tvb, 0);
|
2003-02-05 06:16:32 +00:00
|
|
|
proto_tree_add_uint(rmi_tree, hf_rmi_inputmessage,
|
|
|
|
tvb, offset, 1, message);
|
2002-05-29 18:52:28 +00:00
|
|
|
if(message == RMI_INPUTSTREAM_MESSAGE_ACK) {
|
|
|
|
proto_tree_add_text(rmi_tree, tvb, offset + 1, -1,
|
|
|
|
"EndPointIdentifier");
|
|
|
|
/* MESSAGE_ACK should include EndpointIdentifier */
|
|
|
|
len = tvb_get_ntohs(tvb, 1);
|
|
|
|
proto_tree_add_uint(rmi_tree, hf_rmi_epid_length,
|
|
|
|
tvb, offset + 1, 2, len);
|
2008-06-24 19:08:54 +00:00
|
|
|
epid_len = len < ITEM_LABEL_LENGTH ? len : ITEM_LABEL_LENGTH;
|
|
|
|
if (epid_len > 0) {
|
|
|
|
epid_hostname = tvb_format_text(tvb, offset + 3, epid_len);
|
2002-05-29 18:52:28 +00:00
|
|
|
} else {
|
2008-06-24 19:08:54 +00:00
|
|
|
epid_hostname = "[Empty]";
|
2002-05-29 18:52:28 +00:00
|
|
|
}
|
|
|
|
proto_tree_add_string(rmi_tree, hf_rmi_epid_hostname,
|
2008-06-24 19:18:21 +00:00
|
|
|
tvb, offset + 3, len, epid_hostname);
|
2002-05-29 18:52:28 +00:00
|
|
|
|
|
|
|
port = tvb_get_ntohs(tvb, offset + len + 5);
|
2002-08-28 21:04:11 +00:00
|
|
|
proto_tree_add_uint(rmi_tree, hf_rmi_epid_port,
|
2002-05-29 18:52:28 +00:00
|
|
|
tvb, offset + len + 5, 2, port);
|
|
|
|
}
|
|
|
|
if(message == RMI_INPUTSTREAM_MESSAGE_RETURNDATA) {
|
|
|
|
proto_tree_add_text(rmi_tree, tvb, offset + 1, -1,
|
|
|
|
"Serialization Data");
|
2009-08-16 12:36:22 +00:00
|
|
|
next_tvb = tvb_new_subset_remaining(tvb, offset + 1);
|
2003-03-09 03:19:03 +00:00
|
|
|
dissect_ser(next_tvb, tree);
|
2002-05-29 18:52:28 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case RMI_OUTPUTMESSAGE:
|
|
|
|
message = tvb_get_guint8(tvb, 0);
|
2003-02-05 06:16:32 +00:00
|
|
|
proto_tree_add_uint(rmi_tree, hf_rmi_outputmessage,
|
|
|
|
tvb, offset, 1, message);
|
2002-05-29 18:52:28 +00:00
|
|
|
if(message == RMI_OUTPUTSTREAM_MESSAGE_CALL) {
|
|
|
|
proto_tree_add_text(rmi_tree, tvb, offset + 1, -1,
|
|
|
|
"Serialization Data");
|
|
|
|
/* XXX */
|
2009-08-16 12:36:22 +00:00
|
|
|
next_tvb = tvb_new_subset_remaining(tvb, offset + 1);
|
2003-03-09 03:19:03 +00:00
|
|
|
dissect_ser(next_tvb, tree);
|
2002-05-29 18:52:28 +00:00
|
|
|
}
|
|
|
|
if(message == RMI_OUTPUTSTREAM_MESSAGE_DGCACK) {
|
|
|
|
proto_tree_add_text(rmi_tree, tvb, offset + 1, -1,
|
|
|
|
"UniqueIdentifier");
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case SERIALIZATION_DATA:
|
2003-03-09 03:19:03 +00:00
|
|
|
dissect_ser(tvb, tree);
|
2002-05-29 18:52:28 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2003-03-09 03:19:03 +00:00
|
|
|
dissect_ser(tvbuff_t *tvb, proto_tree *tree)
|
2002-05-29 18:52:28 +00:00
|
|
|
{
|
|
|
|
proto_item *ti;
|
|
|
|
proto_tree *ser_tree;
|
|
|
|
|
|
|
|
gint offset;
|
|
|
|
|
|
|
|
offset = 0;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-05-29 18:52:28 +00:00
|
|
|
if(tree) {
|
|
|
|
ti = proto_tree_add_item(tree, proto_ser, tvb, 0, -1, FALSE);
|
|
|
|
ser_tree = proto_item_add_subtree(ti, ett_ser);
|
2003-02-05 06:16:32 +00:00
|
|
|
proto_tree_add_item(ser_tree, hf_ser_magic,
|
|
|
|
tvb, offset, 2, FALSE);
|
|
|
|
proto_tree_add_item(ser_tree, hf_ser_version,
|
|
|
|
tvb, offset + 2, 2, FALSE);
|
2002-05-29 18:52:28 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static rmi_type
|
2002-08-02 23:36:07 +00:00
|
|
|
get_rmi_type(const guchar *data, int datalen)
|
2002-05-29 18:52:28 +00:00
|
|
|
{
|
|
|
|
guint16 ser_magic;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-05-29 18:52:28 +00:00
|
|
|
if (datalen >= 2) {
|
|
|
|
ser_magic = data[0] << 8 | data[1];
|
|
|
|
if (ser_magic == SER_STREAM_MAGIC) {
|
|
|
|
return SERIALIZATION_DATA;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (datalen >= 4) {
|
2003-02-05 06:16:32 +00:00
|
|
|
if(strncmp(data, RMI_MAGIC, 4) == 0) {
|
2002-05-29 18:52:28 +00:00
|
|
|
return RMI_OUTPUTSTREAM;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (datalen >= 1) {
|
|
|
|
if (data[0] == RMI_INPUTSTREAM_MESSAGE_ACK ||
|
|
|
|
data[0] == RMI_INPUTSTREAM_MESSAGE_NOTSUPPORTED ||
|
|
|
|
data[0] == RMI_INPUTSTREAM_MESSAGE_RETURNDATA ||
|
|
|
|
data[0] == RMI_INPUTSTREAM_MESSAGE_PINGACK) {
|
|
|
|
return RMI_INPUTSTREAM;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (datalen >= 1) {
|
|
|
|
if (data[0] == RMI_OUTPUTSTREAM_MESSAGE_CALL ||
|
|
|
|
data[0] == RMI_OUTPUTSTREAM_MESSAGE_PING ||
|
|
|
|
data[0] == RMI_OUTPUTSTREAM_MESSAGE_DGCACK) {
|
|
|
|
return RMI_OUTPUTMESSAGE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return CONTINUATION;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
proto_register_rmi(void)
|
|
|
|
{
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-05-29 18:52:28 +00:00
|
|
|
static hf_register_info hf[] = {
|
|
|
|
{ &hf_rmi_magic,
|
|
|
|
{ "Magic", "rmi.magic",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x0,
|
|
|
|
"RMI Header Magic", HFILL }},
|
|
|
|
{ &hf_rmi_version,
|
|
|
|
{ "Version", "rmi.version",
|
2002-08-28 21:04:11 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
2002-05-29 18:52:28 +00:00
|
|
|
"RMI Protocol Version", HFILL }},
|
|
|
|
{ &hf_rmi_protocol,
|
|
|
|
{ "Protocol","rmi.protocol",
|
2003-02-05 06:16:32 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(rmi_protocol_str), 0x0,
|
2002-05-29 18:52:28 +00:00
|
|
|
"RMI Protocol Type", HFILL }},
|
|
|
|
{ &hf_rmi_inputmessage,
|
|
|
|
{ "Input Stream Message", "rmi.inputstream.message",
|
2003-02-05 06:16:32 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(rmi_input_message_str), 0x0,
|
2002-05-29 18:52:28 +00:00
|
|
|
"RMI Inputstream Message Token", HFILL }},
|
|
|
|
{ &hf_rmi_outputmessage,
|
|
|
|
{ "Output Stream Message", "rmi.outputstream.message",
|
2003-02-05 06:16:32 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(rmi_output_message_str), 0x0,
|
2002-05-29 18:52:28 +00:00
|
|
|
"RMI Outputstream Message token", HFILL }},
|
|
|
|
{ &hf_rmi_epid_length,
|
|
|
|
{ "Length", "rmi.endpoint_id.length",
|
2002-08-28 21:04:11 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
2002-05-29 18:52:28 +00:00
|
|
|
"RMI Endpointidentifier Length", HFILL }},
|
|
|
|
{ &hf_rmi_epid_hostname,
|
|
|
|
{ "Hostname", "rmi.endpoint_id.hostname",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x0,
|
2002-05-29 18:52:28 +00:00
|
|
|
"RMI Endpointidentifier Hostname", HFILL }},
|
|
|
|
{ &hf_rmi_epid_port,
|
|
|
|
{ "Port", "rmi.endpoint_id.port",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"RMI Endpointindentifier Port", HFILL }},
|
|
|
|
|
|
|
|
{ &hf_ser_magic,
|
|
|
|
{ "Magic", "rmi.ser.magic",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x0,
|
|
|
|
"Java Serialization Magic", HFILL }},
|
|
|
|
{ &hf_ser_version,
|
|
|
|
{ "Version", "rmi.ser.version",
|
2002-08-28 21:04:11 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
2002-05-29 18:52:28 +00:00
|
|
|
"Java Serialization Version", HFILL }},
|
|
|
|
};
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-05-29 18:52:28 +00:00
|
|
|
static gint *ett[] = {
|
|
|
|
&ett_rmi,
|
|
|
|
&ett_rmi_magic,
|
|
|
|
&ett_rmi_version,
|
|
|
|
&ett_rmi_inputmessage,
|
|
|
|
&ett_rmi_outputmessage,
|
|
|
|
&ett_rmi_epid_length,
|
|
|
|
&ett_rmi_epid_hostname,
|
|
|
|
&ett_rmi_epid_port,
|
|
|
|
&ett_ser,
|
|
|
|
};
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-05-29 18:52:28 +00:00
|
|
|
proto_rmi = proto_register_protocol("Java RMI", "RMI", "rmi");
|
|
|
|
proto_ser = proto_register_protocol("Java Serialization", "Serialization",
|
|
|
|
"serialization");
|
|
|
|
proto_register_field_array(proto_rmi, hf, array_length(hf));
|
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
proto_reg_handoff_rmi(void)
|
|
|
|
{
|
|
|
|
dissector_handle_t rmi_handle;
|
|
|
|
|
|
|
|
rmi_handle = create_dissector_handle(dissect_rmi, proto_rmi);
|
|
|
|
dissector_add("tcp.port", TCP_PORT_RMI, rmi_handle);
|
|
|
|
}
|