diff options
Diffstat (limited to 'epan/dissectors/packet-rsh.c')
-rw-r--r-- | epan/dissectors/packet-rsh.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/epan/dissectors/packet-rsh.c b/epan/dissectors/packet-rsh.c index c5436229fe..ccb2ee0286 100644 --- a/epan/dissectors/packet-rsh.c +++ b/epan/dissectors/packet-rsh.c @@ -56,6 +56,8 @@ static int hf_rsh_stderr_port = -1; static int hf_rsh_client_username = -1; static int hf_rsh_server_username = -1; static int hf_rsh_command = -1; +static int hf_rsh_client_server_data = -1; +static int hf_rsh_server_client_data = -1; /* Initialize the subtree pointers */ static gint ett_rsh = -1; @@ -344,13 +346,13 @@ dissect_rsh(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if(pinfo->destport == RSH_PORT){ /* Packet going to the server */ /* offset = 0 since the whole packet is data */ - proto_tree_add_text(rsh_tree, tvb, 0, -1, "Client -> Server Data"); + proto_tree_add_item(rsh_tree, hf_rsh_client_server_data, tvb, 0, -1, ENC_NA); col_append_str(pinfo->cinfo, COL_INFO, "Client -> Server data"); } else { /* This packet must be going back to the client */ /* offset = 0 since the whole packet is data */ - proto_tree_add_text(rsh_tree, tvb, 0, -1, "Server -> Client Data"); + proto_tree_add_item(rsh_tree, hf_rsh_server_client_data, tvb, 0, -1, ENC_NA); col_append_str(pinfo->cinfo, COL_INFO, "Server -> Client Data"); } @@ -380,7 +382,15 @@ proto_register_rsh(void) { &hf_rsh_command, { "Command to execute", "rsh.command", FT_STRINGZ, BASE_NONE, NULL, 0, - "Command client is requesting the server to run", HFILL } } + "Command client is requesting the server to run", HFILL } }, + + { &hf_rsh_client_server_data, { "Client -> Server Data", "rsh.client_server_data", + FT_BYTES, BASE_NONE, NULL, 0, + NULL, HFILL } }, + + { &hf_rsh_server_client_data, { "Server -> Client Data", "rsh.server_client_data", + FT_BYTES, BASE_NONE, NULL, 0, + NULL, HFILL } }, }; |