1999-11-29 19:43:26 +00:00
|
|
|
/* packet-tns.c
|
2001-02-03 08:21:47 +00:00
|
|
|
* Routines for Oracle TNS packet dissection
|
1999-11-29 19:43:26 +00:00
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
1999-11-29 19:43:26 +00:00
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
1999-11-29 19:43:26 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* Copied from packet-tftp.c
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
1999-11-29 19:43:26 +00:00
|
|
|
* 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
|
|
|
*
|
1999-11-29 19:43:26 +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
|
|
|
*
|
1999-11-29 19:43:26 +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 <glib.h>
|
2002-01-21 07:37:49 +00:00
|
|
|
#include <epan/packet.h>
|
2002-07-08 22:57:55 +00:00
|
|
|
#include "packet-tcp.h"
|
1999-11-29 19:43:26 +00:00
|
|
|
#include "packet-tns.h"
|
|
|
|
|
2004-09-27 22:55:15 +00:00
|
|
|
#include <epan/prefs.h>
|
2002-07-08 22:57:55 +00:00
|
|
|
|
|
|
|
/* desegmentation of TNS over TCP */
|
|
|
|
static gboolean tns_desegment = TRUE;
|
|
|
|
|
1999-11-29 19:43:26 +00:00
|
|
|
static int proto_tns = -1;
|
|
|
|
static int hf_tns_request = -1;
|
|
|
|
static int hf_tns_response = -1;
|
|
|
|
static int hf_tns_length = -1;
|
|
|
|
static int hf_tns_packet_checksum = -1;
|
|
|
|
static int hf_tns_header_checksum = -1;
|
|
|
|
static int hf_tns_packet_type = -1;
|
|
|
|
static int hf_tns_reserved_byte = -1;
|
1999-11-30 17:58:32 +00:00
|
|
|
static int hf_tns_connect = -1;
|
|
|
|
static int hf_tns_version = -1;
|
|
|
|
static int hf_tns_compat_version = -1;
|
2002-06-05 17:41:59 +00:00
|
|
|
|
1999-11-30 17:58:32 +00:00
|
|
|
static int hf_tns_service_options = -1;
|
2002-06-05 17:41:59 +00:00
|
|
|
static int hf_tns_sopt_flag_bconn = -1;
|
|
|
|
static int hf_tns_sopt_flag_pc = -1;
|
|
|
|
static int hf_tns_sopt_flag_hc = -1;
|
|
|
|
static int hf_tns_sopt_flag_fd = -1;
|
|
|
|
static int hf_tns_sopt_flag_hd = -1;
|
|
|
|
static int hf_tns_sopt_flag_dc1 = -1;
|
|
|
|
static int hf_tns_sopt_flag_dc2 = -1;
|
|
|
|
static int hf_tns_sopt_flag_dio = -1;
|
|
|
|
static int hf_tns_sopt_flag_ap = -1;
|
|
|
|
static int hf_tns_sopt_flag_ra = -1;
|
|
|
|
static int hf_tns_sopt_flag_sa = -1;
|
|
|
|
|
2001-10-06 15:27:47 +00:00
|
|
|
static int hf_tns_sdu_size = -1;
|
|
|
|
static int hf_tns_max_tdu_size = -1;
|
2002-06-05 17:41:59 +00:00
|
|
|
|
2001-10-06 15:27:47 +00:00
|
|
|
static int hf_tns_nt_proto_characteristics = -1;
|
2002-06-05 17:41:59 +00:00
|
|
|
static int hf_tns_ntp_flag_hangon = -1;
|
|
|
|
static int hf_tns_ntp_flag_crel = -1;
|
|
|
|
static int hf_tns_ntp_flag_tduio = -1;
|
|
|
|
static int hf_tns_ntp_flag_srun = -1;
|
|
|
|
static int hf_tns_ntp_flag_dtest = -1;
|
|
|
|
static int hf_tns_ntp_flag_cbio = -1;
|
|
|
|
static int hf_tns_ntp_flag_asio = -1;
|
|
|
|
static int hf_tns_ntp_flag_pio = -1;
|
|
|
|
static int hf_tns_ntp_flag_grant = -1;
|
|
|
|
static int hf_tns_ntp_flag_handoff = -1;
|
|
|
|
static int hf_tns_ntp_flag_sigio = -1;
|
|
|
|
static int hf_tns_ntp_flag_sigpipe = -1;
|
|
|
|
static int hf_tns_ntp_flag_sigurg = -1;
|
|
|
|
static int hf_tns_ntp_flag_urgentio = -1;
|
|
|
|
static int hf_tns_ntp_flag_fdio = -1;
|
|
|
|
static int hf_tns_ntp_flag_testop = -1;
|
|
|
|
|
2001-10-06 15:27:47 +00:00
|
|
|
static int hf_tns_line_turnaround = -1;
|
|
|
|
static int hf_tns_value_of_one = -1;
|
|
|
|
static int hf_tns_connect_data_length = -1;
|
|
|
|
static int hf_tns_connect_data_offset = -1;
|
|
|
|
static int hf_tns_connect_data_max = -1;
|
2002-06-05 17:41:59 +00:00
|
|
|
|
2001-10-06 15:27:47 +00:00
|
|
|
static int hf_tns_connect_flags0 = -1;
|
|
|
|
static int hf_tns_connect_flags1 = -1;
|
2002-06-05 17:41:59 +00:00
|
|
|
static int hf_tns_conn_flag_nareq = -1;
|
|
|
|
static int hf_tns_conn_flag_nalink = -1;
|
|
|
|
static int hf_tns_conn_flag_enablena = -1;
|
|
|
|
static int hf_tns_conn_flag_ichg = -1;
|
|
|
|
static int hf_tns_conn_flag_wantna = -1;
|
|
|
|
|
2001-10-06 15:27:47 +00:00
|
|
|
static int hf_tns_connect_data = -1;
|
|
|
|
static int hf_tns_trace_cf1 = -1;
|
|
|
|
static int hf_tns_trace_cf2 = -1;
|
|
|
|
static int hf_tns_trace_cid = -1;
|
1999-11-29 19:43:26 +00:00
|
|
|
|
2001-10-06 16:48:00 +00:00
|
|
|
static int hf_tns_accept = -1;
|
|
|
|
static int hf_tns_accept_data_length = -1;
|
|
|
|
static int hf_tns_accept_data_offset = -1;
|
|
|
|
static int hf_tns_accept_data = -1;
|
|
|
|
|
|
|
|
static int hf_tns_refuse = -1;
|
|
|
|
static int hf_tns_refuse_reason_user = -1;
|
|
|
|
static int hf_tns_refuse_reason_system = -1;
|
|
|
|
static int hf_tns_refuse_data_length = -1;
|
|
|
|
static int hf_tns_refuse_data = -1;
|
|
|
|
|
2001-10-08 14:32:06 +00:00
|
|
|
static int hf_tns_abort = -1;
|
|
|
|
static int hf_tns_abort_reason_user = -1;
|
|
|
|
static int hf_tns_abort_reason_system = -1;
|
|
|
|
static int hf_tns_abort_data = -1;
|
|
|
|
|
|
|
|
static int hf_tns_marker = -1;
|
|
|
|
static int hf_tns_marker_type = -1;
|
|
|
|
static int hf_tns_marker_data_byte = -1;
|
|
|
|
static int hf_tns_marker_data = -1;
|
|
|
|
|
2001-10-06 16:48:00 +00:00
|
|
|
static int hf_tns_redirect = -1;
|
|
|
|
static int hf_tns_redirect_data_length = -1;
|
|
|
|
static int hf_tns_redirect_data = -1;
|
2001-10-06 17:58:56 +00:00
|
|
|
|
2001-10-08 14:32:06 +00:00
|
|
|
static int hf_tns_control = -1;
|
|
|
|
static int hf_tns_control_cmd = -1;
|
|
|
|
static int hf_tns_control_data = -1;
|
|
|
|
|
2001-10-06 17:58:56 +00:00
|
|
|
static int hf_tns_data_flag = -1;
|
|
|
|
static int hf_tns_data_flag_send = -1;
|
|
|
|
static int hf_tns_data_flag_rc = -1;
|
|
|
|
static int hf_tns_data_flag_c = -1;
|
|
|
|
static int hf_tns_data_flag_reserved = -1;
|
|
|
|
static int hf_tns_data_flag_more = -1;
|
|
|
|
static int hf_tns_data_flag_eof = -1;
|
|
|
|
static int hf_tns_data_flag_dic = -1;
|
|
|
|
static int hf_tns_data_flag_rts = -1;
|
|
|
|
static int hf_tns_data_flag_sntt = -1;
|
|
|
|
static int hf_tns_data = -1;
|
|
|
|
|
1999-11-29 19:43:26 +00:00
|
|
|
static gint ett_tns = -1;
|
1999-11-30 17:58:32 +00:00
|
|
|
static gint ett_tns_connect = -1;
|
2001-10-06 15:45:38 +00:00
|
|
|
static gint ett_tns_accept = -1;
|
2001-10-06 17:58:56 +00:00
|
|
|
static gint ett_tns_refuse = -1;
|
2001-10-08 14:32:06 +00:00
|
|
|
static gint ett_tns_abort = -1;
|
2001-10-06 17:58:56 +00:00
|
|
|
static gint ett_tns_redirect = -1;
|
2001-10-08 14:32:06 +00:00
|
|
|
static gint ett_tns_marker = -1;
|
|
|
|
static gint ett_tns_attention = -1;
|
|
|
|
static gint ett_tns_control = -1;
|
2001-10-06 17:58:56 +00:00
|
|
|
static gint ett_tns_data = -1;
|
|
|
|
static gint ett_tns_data_flag = -1;
|
2002-06-05 17:41:59 +00:00
|
|
|
static gint ett_tns_sopt_flag = -1;
|
|
|
|
static gint ett_tns_ntp_flag = -1;
|
|
|
|
static gint ett_tns_conn_flag = -1;
|
1999-11-30 17:58:32 +00:00
|
|
|
static gint ett_sql = -1;
|
1999-11-29 19:43:26 +00:00
|
|
|
|
2001-11-26 04:52:51 +00:00
|
|
|
static dissector_handle_t data_handle;
|
|
|
|
|
2000-04-08 07:07:42 +00:00
|
|
|
#define TCP_PORT_TNS 1521
|
|
|
|
|
1999-11-29 19:43:26 +00:00
|
|
|
static const value_string tns_type_vals[] = {
|
2001-10-06 17:58:56 +00:00
|
|
|
{TNS_TYPE_CONNECT, "Connect" },
|
|
|
|
{TNS_TYPE_ACCEPT, "Accept" },
|
|
|
|
{TNS_TYPE_ACK, "Acknowledge" },
|
|
|
|
{TNS_TYPE_REFUSE, "Refuse" },
|
|
|
|
{TNS_TYPE_REDIRECT, "Redirect" },
|
|
|
|
{TNS_TYPE_DATA, "Data" },
|
|
|
|
{TNS_TYPE_NULL, "Null" },
|
|
|
|
{TNS_TYPE_ABORT, "Abort" },
|
|
|
|
{TNS_TYPE_RESEND, "Resend"},
|
|
|
|
{TNS_TYPE_MARKER, "Marker"},
|
|
|
|
{TNS_TYPE_ATTENTION, "Attention"},
|
|
|
|
{TNS_TYPE_CONTROL, "Control"},
|
|
|
|
{0, NULL}
|
1999-11-29 19:43:26 +00:00
|
|
|
};
|
|
|
|
|
2001-10-08 14:32:06 +00:00
|
|
|
static const value_string tns_marker_types[] = {
|
|
|
|
{0, "Data Marker - 0 Data Bytes"},
|
|
|
|
{1, "Data Marker - 1 Data Bytes"},
|
|
|
|
{2, "Attention Marker"},
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string tns_control_cmds[] = {
|
|
|
|
{1, "Oracle Trace Command"},
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
2002-07-08 22:57:55 +00:00
|
|
|
void proto_reg_handoff_tns(void);
|
2006-10-31 09:29:07 +00:00
|
|
|
static guint get_tns_pdu_len(packet_info *pinfo, tvbuff_t *tvb, int offset);
|
2002-07-08 22:57:55 +00:00
|
|
|
static void dissect_tns_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
|
|
|
|
|
2002-06-06 13:17:49 +00:00
|
|
|
static void dissect_tns_service_options(tvbuff_t *tvb, int offset,
|
|
|
|
proto_tree *sopt_tree)
|
|
|
|
{
|
|
|
|
|
|
|
|
proto_tree_add_item(sopt_tree, hf_tns_sopt_flag_bconn, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
proto_tree_add_item(sopt_tree, hf_tns_sopt_flag_pc, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
proto_tree_add_item(sopt_tree, hf_tns_sopt_flag_hc, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
proto_tree_add_item(sopt_tree, hf_tns_sopt_flag_fd, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
proto_tree_add_item(sopt_tree, hf_tns_sopt_flag_hd, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
proto_tree_add_item(sopt_tree, hf_tns_sopt_flag_dc1, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
proto_tree_add_item(sopt_tree, hf_tns_sopt_flag_dc2, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
proto_tree_add_item(sopt_tree, hf_tns_sopt_flag_dio, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
proto_tree_add_item(sopt_tree, hf_tns_sopt_flag_ap, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
proto_tree_add_item(sopt_tree, hf_tns_sopt_flag_ra, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
proto_tree_add_item(sopt_tree, hf_tns_sopt_flag_sa, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-06-06 13:17:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void dissect_tns_connect_flag(tvbuff_t *tvb, int offset,
|
|
|
|
proto_tree *cflag_tree)
|
|
|
|
{
|
|
|
|
|
2011-10-10 00:39:31 +00:00
|
|
|
proto_tree_add_item(cflag_tree, hf_tns_conn_flag_nareq, tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(cflag_tree, hf_tns_conn_flag_nalink, tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(cflag_tree, hf_tns_conn_flag_enablena, tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(cflag_tree, hf_tns_conn_flag_ichg, tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(cflag_tree, hf_tns_conn_flag_wantna, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
}
|
|
|
|
|
2001-10-06 17:58:56 +00:00
|
|
|
static void dissect_tns_data(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
1999-11-30 17:58:32 +00:00
|
|
|
proto_tree *tree, proto_tree *tns_tree)
|
|
|
|
{
|
2001-10-06 17:58:56 +00:00
|
|
|
proto_tree *data_tree = NULL, *ti;
|
2008-05-13 01:23:37 +00:00
|
|
|
proto_item *hidden_item;
|
2001-10-06 17:58:56 +00:00
|
|
|
int is_sns = 0;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2001-10-06 17:58:56 +00:00
|
|
|
if ( tvb_bytes_exist(tvb, offset+2, 4) )
|
1999-11-30 17:58:32 +00:00
|
|
|
{
|
2001-10-06 17:58:56 +00:00
|
|
|
if ( tvb_get_guint8(tvb, offset+2) == 0xDE &&
|
|
|
|
tvb_get_guint8(tvb, offset+3) == 0xAD &&
|
|
|
|
tvb_get_guint8(tvb, offset+4) == 0xBE &&
|
|
|
|
tvb_get_guint8(tvb, offset+5) == 0xEF )
|
|
|
|
{
|
|
|
|
is_sns = 1;
|
|
|
|
}
|
1999-11-30 17:58:32 +00:00
|
|
|
}
|
2001-02-03 08:21:47 +00:00
|
|
|
|
2001-10-06 17:58:56 +00:00
|
|
|
if ( tree )
|
1999-11-30 17:58:32 +00:00
|
|
|
{
|
2001-10-06 17:58:56 +00:00
|
|
|
if ( is_sns )
|
|
|
|
{
|
2002-01-24 09:20:54 +00:00
|
|
|
ti = proto_tree_add_text(tns_tree, tvb, offset, -1,
|
|
|
|
"Secure Network Services");
|
2001-10-06 17:58:56 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2002-01-24 09:20:54 +00:00
|
|
|
ti = proto_tree_add_text(tns_tree, tvb, offset, -1,
|
2002-08-28 21:04:11 +00:00
|
|
|
"Data");
|
2001-10-06 17:58:56 +00:00
|
|
|
}
|
|
|
|
data_tree = proto_item_add_subtree(ti, ett_tns_data);
|
1999-11-30 17:58:32 +00:00
|
|
|
|
2008-05-13 01:23:37 +00:00
|
|
|
hidden_item = proto_tree_add_boolean(tns_tree, hf_tns_data, tvb, 0, 0,
|
|
|
|
TRUE);
|
|
|
|
PROTO_ITEM_SET_HIDDEN(hidden_item);
|
1999-11-30 17:58:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if ( tree )
|
|
|
|
{
|
2001-10-06 17:58:56 +00:00
|
|
|
proto_tree *df_tree = NULL;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2011-10-06 03:35:44 +00:00
|
|
|
ti = proto_tree_add_item(data_tree, hf_tns_data_flag, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2001-10-06 17:58:56 +00:00
|
|
|
df_tree = proto_item_add_subtree(ti, ett_tns_data_flag);
|
2011-10-10 00:39:31 +00:00
|
|
|
proto_tree_add_item(df_tree, hf_tns_data_flag_send, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(df_tree, hf_tns_data_flag_rc, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(df_tree, hf_tns_data_flag_c, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(df_tree, hf_tns_data_flag_reserved, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(df_tree, hf_tns_data_flag_more, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(df_tree, hf_tns_data_flag_eof, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(df_tree, hf_tns_data_flag_dic, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(df_tree, hf_tns_data_flag_rts, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(df_tree, hf_tns_data_flag_sntt, tvb, offset, 2, ENC_BIG_ENDIAN);
|
1999-11-30 17:58:32 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
2001-12-10 00:26:21 +00:00
|
|
|
if ( check_col(pinfo->cinfo, COL_INFO) )
|
1999-11-30 17:58:32 +00:00
|
|
|
{
|
2001-10-06 17:58:56 +00:00
|
|
|
if ( is_sns )
|
1999-11-30 17:58:32 +00:00
|
|
|
{
|
2007-10-23 05:50:00 +00:00
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, ", SNS");
|
1999-11-30 17:58:32 +00:00
|
|
|
}
|
2001-10-06 17:58:56 +00:00
|
|
|
else
|
|
|
|
{
|
2007-10-23 05:50:00 +00:00
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, ", Data");
|
2002-08-28 21:04:11 +00:00
|
|
|
}
|
1999-11-30 17:58:32 +00:00
|
|
|
}
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2001-10-06 17:58:56 +00:00
|
|
|
if ( data_tree )
|
|
|
|
{
|
2002-05-30 01:56:55 +00:00
|
|
|
call_dissector(data_handle,
|
2009-08-16 12:36:22 +00:00
|
|
|
tvb_new_subset_remaining(tvb, offset), pinfo, data_tree);
|
2001-10-06 17:58:56 +00:00
|
|
|
}
|
|
|
|
|
1999-11-29 19:43:26 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2001-02-03 08:21:47 +00:00
|
|
|
static void dissect_tns_connect(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
1999-11-30 17:58:32 +00:00
|
|
|
proto_tree *tree, proto_tree *tns_tree)
|
1999-11-29 19:43:26 +00:00
|
|
|
{
|
1999-11-30 17:58:32 +00:00
|
|
|
proto_tree *connect_tree = NULL, *ti;
|
2008-05-13 01:23:37 +00:00
|
|
|
proto_item *hidden_item;
|
2001-10-06 15:27:47 +00:00
|
|
|
int cd_offset;
|
2001-10-06 15:45:38 +00:00
|
|
|
int cd_len;
|
2001-10-06 15:27:47 +00:00
|
|
|
int tns_offset = offset-8;
|
1999-11-30 17:58:32 +00:00
|
|
|
|
|
|
|
if ( tree )
|
|
|
|
{
|
2002-01-24 09:20:54 +00:00
|
|
|
ti = proto_tree_add_text(tns_tree, tvb, offset, -1,
|
|
|
|
"Connect");
|
1999-11-30 17:58:32 +00:00
|
|
|
connect_tree = proto_item_add_subtree(ti, ett_tns_connect);
|
|
|
|
|
2008-05-13 01:23:37 +00:00
|
|
|
hidden_item = proto_tree_add_boolean(tns_tree, hf_tns_connect, tvb,
|
|
|
|
0, 0, TRUE);
|
|
|
|
PROTO_ITEM_SET_HIDDEN(hidden_item);
|
1999-11-30 17:58:32 +00:00
|
|
|
}
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2009-09-24 20:00:21 +00:00
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, ", Connect");
|
1999-11-30 17:58:32 +00:00
|
|
|
|
|
|
|
if ( connect_tree )
|
|
|
|
{
|
2001-02-03 08:21:47 +00:00
|
|
|
proto_tree_add_item(connect_tree, hf_tns_version, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
1999-11-30 17:58:32 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
1999-11-30 17:58:32 +00:00
|
|
|
if ( connect_tree )
|
|
|
|
{
|
2001-02-03 08:21:47 +00:00
|
|
|
proto_tree_add_item(connect_tree, hf_tns_compat_version, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
1999-11-30 17:58:32 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
if ( connect_tree )
|
|
|
|
{
|
2002-06-05 17:41:59 +00:00
|
|
|
proto_tree *sopt_tree = NULL;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-06-05 17:41:59 +00:00
|
|
|
ti = proto_tree_add_item(connect_tree, hf_tns_service_options, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
|
2002-06-05 17:41:59 +00:00
|
|
|
sopt_tree = proto_item_add_subtree(ti, ett_tns_sopt_flag);
|
|
|
|
|
2002-06-06 13:17:49 +00:00
|
|
|
dissect_tns_service_options(tvb, offset, sopt_tree);
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-06-05 17:41:59 +00:00
|
|
|
|
1999-11-30 17:58:32 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
if ( connect_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(connect_tree, hf_tns_sdu_size, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2001-10-06 15:27:47 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
if ( connect_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(connect_tree, hf_tns_max_tdu_size, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2001-10-06 15:27:47 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
if ( connect_tree )
|
|
|
|
{
|
2002-06-05 17:41:59 +00:00
|
|
|
proto_tree *ntp_tree = NULL;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-06-05 17:41:59 +00:00
|
|
|
ti = proto_tree_add_item(connect_tree, hf_tns_nt_proto_characteristics, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-06-05 17:41:59 +00:00
|
|
|
ntp_tree = proto_item_add_subtree(ti, ett_tns_ntp_flag);
|
|
|
|
|
2011-10-10 00:39:31 +00:00
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_hangon, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_crel, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_tduio, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_srun, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_dtest, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_cbio, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_asio, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_pio, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_grant, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_handoff, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_sigio, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_sigpipe, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_sigurg, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_urgentio, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_fdio, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ntp_tree, hf_tns_ntp_flag_testop, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2001-10-06 15:27:47 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
if ( connect_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(connect_tree, hf_tns_line_turnaround, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2001-10-06 15:27:47 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
if ( connect_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(connect_tree, hf_tns_value_of_one, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, 2, ENC_NA);
|
2001-10-06 15:27:47 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
2001-10-06 15:45:38 +00:00
|
|
|
cd_len = tvb_get_ntohs(tvb, offset);
|
2001-10-06 15:27:47 +00:00
|
|
|
if ( connect_tree )
|
|
|
|
{
|
|
|
|
proto_tree_add_uint(connect_tree, hf_tns_connect_data_length, tvb,
|
2001-10-06 15:45:38 +00:00
|
|
|
offset, 2, cd_len);
|
2001-10-06 15:27:47 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
cd_offset = tvb_get_ntohs(tvb, offset);
|
|
|
|
if ( connect_tree )
|
|
|
|
{
|
|
|
|
proto_tree_add_uint(connect_tree, hf_tns_connect_data_offset, tvb,
|
|
|
|
offset, 2, cd_offset);
|
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
if ( connect_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(connect_tree, hf_tns_connect_data_max, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 4, ENC_BIG_ENDIAN);
|
2001-10-06 15:27:47 +00:00
|
|
|
}
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
if ( connect_tree )
|
|
|
|
{
|
2002-06-05 17:41:59 +00:00
|
|
|
proto_tree *cflag_tree = NULL;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-06-05 17:41:59 +00:00
|
|
|
ti = proto_tree_add_item(connect_tree, hf_tns_connect_flags0, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
|
2002-06-05 17:41:59 +00:00
|
|
|
cflag_tree = proto_item_add_subtree(ti, ett_tns_conn_flag);
|
|
|
|
|
2002-06-06 13:17:49 +00:00
|
|
|
dissect_tns_connect_flag(tvb, offset, cflag_tree);
|
2001-10-06 15:27:47 +00:00
|
|
|
}
|
2001-10-08 14:32:06 +00:00
|
|
|
offset += 1;
|
2001-10-06 15:27:47 +00:00
|
|
|
|
|
|
|
if ( connect_tree )
|
|
|
|
{
|
2002-06-05 17:41:59 +00:00
|
|
|
proto_tree *cflag_tree = NULL;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-06-05 17:41:59 +00:00
|
|
|
ti = proto_tree_add_item(connect_tree, hf_tns_connect_flags1, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
|
2002-06-05 17:41:59 +00:00
|
|
|
cflag_tree = proto_item_add_subtree(ti, ett_tns_conn_flag);
|
|
|
|
|
2002-06-06 13:17:49 +00:00
|
|
|
dissect_tns_connect_flag(tvb, offset, cflag_tree);
|
2001-10-06 15:27:47 +00:00
|
|
|
}
|
2001-10-08 14:32:06 +00:00
|
|
|
offset += 1;
|
2001-10-06 15:27:47 +00:00
|
|
|
|
2003-02-05 08:06:40 +00:00
|
|
|
/*
|
|
|
|
* XXX - sometimes it appears that this stuff isn't present
|
|
|
|
* in the packet.
|
|
|
|
*/
|
|
|
|
if (offset + 16 <= tns_offset+cd_offset)
|
2001-10-06 15:27:47 +00:00
|
|
|
{
|
2003-02-05 08:06:40 +00:00
|
|
|
if ( connect_tree )
|
|
|
|
{
|
|
|
|
proto_tree_add_item(connect_tree, hf_tns_trace_cf1, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 4, ENC_BIG_ENDIAN);
|
2003-02-05 08:06:40 +00:00
|
|
|
}
|
|
|
|
offset += 4;
|
2001-10-06 15:27:47 +00:00
|
|
|
|
2003-02-05 08:06:40 +00:00
|
|
|
if ( connect_tree )
|
|
|
|
{
|
|
|
|
proto_tree_add_item(connect_tree, hf_tns_trace_cf2, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 4, ENC_BIG_ENDIAN);
|
2003-02-05 08:06:40 +00:00
|
|
|
}
|
|
|
|
offset += 4;
|
2001-10-06 15:27:47 +00:00
|
|
|
|
2003-02-05 08:06:40 +00:00
|
|
|
if ( connect_tree )
|
|
|
|
{
|
|
|
|
proto_tree_add_item(connect_tree, hf_tns_trace_cid, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 8, ENC_BIG_ENDIAN);
|
2003-02-05 08:06:40 +00:00
|
|
|
}
|
|
|
|
offset += 8;
|
2001-10-06 15:27:47 +00:00
|
|
|
}
|
|
|
|
|
2001-10-06 15:45:38 +00:00
|
|
|
if ( connect_tree && cd_len > 0)
|
2001-10-06 15:27:47 +00:00
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(connect_tree, hf_tns_connect_data, tvb,
|
2011-10-15 18:46:26 +00:00
|
|
|
tns_offset+cd_offset, -1, ENC_ASCII|ENC_NA);
|
1999-11-30 17:58:32 +00:00
|
|
|
}
|
1999-11-29 19:43:26 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2001-02-03 08:21:47 +00:00
|
|
|
static void dissect_tns_accept(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
1999-11-30 17:58:32 +00:00
|
|
|
proto_tree *tree, proto_tree *tns_tree)
|
1999-11-29 19:43:26 +00:00
|
|
|
{
|
2001-10-06 16:48:00 +00:00
|
|
|
proto_tree *accept_tree = NULL, *ti;
|
2008-05-13 01:23:37 +00:00
|
|
|
proto_item *hidden_item;
|
2001-10-06 16:48:00 +00:00
|
|
|
int accept_offset;
|
|
|
|
int accept_len;
|
2001-10-06 15:45:38 +00:00
|
|
|
int tns_offset = offset-8;
|
|
|
|
|
|
|
|
if ( tree )
|
|
|
|
{
|
2002-01-24 09:20:54 +00:00
|
|
|
ti = proto_tree_add_text(tns_tree, tvb, offset, -1,
|
|
|
|
"Accept");
|
2001-10-06 16:48:00 +00:00
|
|
|
accept_tree = proto_item_add_subtree(ti, ett_tns_accept);
|
2001-10-06 15:45:38 +00:00
|
|
|
|
2008-05-13 01:23:37 +00:00
|
|
|
hidden_item = proto_tree_add_boolean(tns_tree, hf_tns_accept, tvb,
|
|
|
|
0, 0, TRUE);
|
|
|
|
PROTO_ITEM_SET_HIDDEN(hidden_item);
|
2001-10-06 15:45:38 +00:00
|
|
|
}
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2009-09-24 20:00:21 +00:00
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, ", Accept");
|
2001-10-06 15:45:38 +00:00
|
|
|
|
2001-10-06 16:48:00 +00:00
|
|
|
if ( accept_tree )
|
2001-10-06 15:45:38 +00:00
|
|
|
{
|
2001-10-06 16:48:00 +00:00
|
|
|
proto_tree_add_item(accept_tree, hf_tns_version, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2001-10-06 15:45:38 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2001-10-06 16:48:00 +00:00
|
|
|
if ( accept_tree )
|
2001-10-06 15:45:38 +00:00
|
|
|
{
|
2002-06-06 13:17:49 +00:00
|
|
|
proto_tree *sopt_tree = NULL;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
|
|
|
ti = proto_tree_add_item(accept_tree, hf_tns_service_options,
|
2011-10-06 03:35:44 +00:00
|
|
|
tvb, offset, 2, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
|
|
|
|
sopt_tree = proto_item_add_subtree(ti, ett_tns_sopt_flag);
|
|
|
|
|
|
|
|
dissect_tns_service_options(tvb, offset, sopt_tree);
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2001-10-06 15:45:38 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
2001-10-06 16:48:00 +00:00
|
|
|
if ( accept_tree )
|
2001-10-06 15:45:38 +00:00
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(accept_tree, hf_tns_sdu_size, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2001-10-06 15:45:38 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
2001-10-06 16:48:00 +00:00
|
|
|
if ( accept_tree )
|
2001-10-06 15:45:38 +00:00
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(accept_tree, hf_tns_max_tdu_size, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2001-10-06 15:45:38 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
2001-10-06 16:48:00 +00:00
|
|
|
if ( accept_tree )
|
2001-10-06 15:45:38 +00:00
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(accept_tree, hf_tns_value_of_one, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, 2, ENC_NA);
|
2001-10-06 15:45:38 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
2001-10-06 16:48:00 +00:00
|
|
|
accept_len = tvb_get_ntohs(tvb, offset);
|
|
|
|
if ( accept_tree )
|
2001-10-06 15:45:38 +00:00
|
|
|
{
|
2001-10-06 16:48:00 +00:00
|
|
|
proto_tree_add_uint(accept_tree, hf_tns_accept_data_length, tvb,
|
|
|
|
offset, 2, accept_len);
|
2001-10-06 15:45:38 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
2001-10-06 16:48:00 +00:00
|
|
|
accept_offset = tvb_get_ntohs(tvb, offset);
|
|
|
|
if ( accept_tree )
|
2001-10-06 15:45:38 +00:00
|
|
|
{
|
2001-10-06 16:48:00 +00:00
|
|
|
proto_tree_add_uint(accept_tree, hf_tns_accept_data_offset, tvb,
|
|
|
|
offset, 2, accept_offset);
|
2001-10-06 15:45:38 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
2001-10-06 16:48:00 +00:00
|
|
|
if ( accept_tree )
|
2001-10-06 15:45:38 +00:00
|
|
|
{
|
2002-06-06 13:17:49 +00:00
|
|
|
proto_tree *cflag_tree = NULL;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-06-06 13:17:49 +00:00
|
|
|
ti = proto_tree_add_item(accept_tree, hf_tns_connect_flags0, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
|
|
|
|
cflag_tree = proto_item_add_subtree(ti, ett_tns_conn_flag);
|
|
|
|
|
|
|
|
dissect_tns_connect_flag(tvb, offset, cflag_tree);
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2001-10-06 15:45:38 +00:00
|
|
|
}
|
2001-10-08 14:32:06 +00:00
|
|
|
offset += 1;
|
2001-10-06 15:45:38 +00:00
|
|
|
|
2001-10-06 16:48:00 +00:00
|
|
|
if ( accept_tree )
|
2001-10-06 15:45:38 +00:00
|
|
|
{
|
2002-06-06 13:17:49 +00:00
|
|
|
proto_tree *cflag_tree = NULL;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2002-06-06 13:17:49 +00:00
|
|
|
ti = proto_tree_add_item(accept_tree, hf_tns_connect_flags1, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN);
|
2002-06-06 13:17:49 +00:00
|
|
|
|
|
|
|
cflag_tree = proto_item_add_subtree(ti, ett_tns_conn_flag);
|
|
|
|
|
|
|
|
dissect_tns_connect_flag(tvb, offset, cflag_tree);
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2001-10-06 15:45:38 +00:00
|
|
|
}
|
2001-10-08 14:32:06 +00:00
|
|
|
offset += 1;
|
2001-10-06 15:45:38 +00:00
|
|
|
|
2001-10-06 16:48:00 +00:00
|
|
|
if ( accept_tree && accept_len > 0)
|
2001-10-06 15:45:38 +00:00
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(accept_tree, hf_tns_accept_data, tvb,
|
2011-10-15 18:46:26 +00:00
|
|
|
tns_offset+accept_offset, -1, ENC_ASCII|ENC_NA);
|
2001-10-06 16:48:00 +00:00
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void dissect_tns_refuse(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
|
|
|
proto_tree *tree, proto_tree *tns_tree)
|
|
|
|
{
|
|
|
|
proto_tree *refuse_tree = NULL, *ti;
|
2008-05-13 01:23:37 +00:00
|
|
|
proto_item *hidden_item;
|
2001-10-06 16:48:00 +00:00
|
|
|
|
|
|
|
if ( tree )
|
|
|
|
{
|
2002-01-24 09:20:54 +00:00
|
|
|
ti = proto_tree_add_text(tns_tree, tvb, offset, -1,
|
|
|
|
"Refuse");
|
2001-10-06 17:58:56 +00:00
|
|
|
refuse_tree = proto_item_add_subtree(ti, ett_tns_refuse);
|
2001-10-06 16:48:00 +00:00
|
|
|
|
2008-05-13 01:23:37 +00:00
|
|
|
hidden_item = proto_tree_add_boolean(tns_tree, hf_tns_refuse, tvb,
|
|
|
|
0, 0, TRUE);
|
|
|
|
PROTO_ITEM_SET_HIDDEN(hidden_item);
|
2001-10-06 16:48:00 +00:00
|
|
|
}
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2009-09-24 20:00:21 +00:00
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, ", Refuse");
|
2001-10-06 16:48:00 +00:00
|
|
|
|
|
|
|
if ( refuse_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(refuse_tree, hf_tns_refuse_reason_user, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN);
|
2001-10-06 16:48:00 +00:00
|
|
|
}
|
2001-10-08 14:32:06 +00:00
|
|
|
offset += 1;
|
2001-10-06 16:48:00 +00:00
|
|
|
|
|
|
|
if ( refuse_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(refuse_tree, hf_tns_refuse_reason_system, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN);
|
2001-10-06 16:48:00 +00:00
|
|
|
}
|
2001-10-08 14:32:06 +00:00
|
|
|
offset += 1;
|
2001-10-06 16:48:00 +00:00
|
|
|
|
|
|
|
if ( refuse_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(refuse_tree, hf_tns_refuse_data_length, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2001-10-06 16:48:00 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
if ( refuse_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(refuse_tree, hf_tns_refuse_data, tvb,
|
2011-10-15 18:46:26 +00:00
|
|
|
offset, -1, ENC_ASCII|ENC_NA);
|
2001-10-06 16:48:00 +00:00
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2001-10-08 14:32:06 +00:00
|
|
|
|
|
|
|
static void dissect_tns_abort(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
|
|
|
proto_tree *tree, proto_tree *tns_tree)
|
|
|
|
{
|
|
|
|
proto_tree *abort_tree = NULL, *ti;
|
2008-05-13 01:23:37 +00:00
|
|
|
proto_item *hidden_item;
|
2001-10-08 14:32:06 +00:00
|
|
|
|
|
|
|
if ( tree )
|
|
|
|
{
|
2002-01-24 09:20:54 +00:00
|
|
|
ti = proto_tree_add_text(tns_tree, tvb, offset, -1,
|
|
|
|
"Abort");
|
2001-10-08 14:32:06 +00:00
|
|
|
abort_tree = proto_item_add_subtree(ti, ett_tns_abort);
|
|
|
|
|
2008-05-13 01:23:37 +00:00
|
|
|
hidden_item = proto_tree_add_boolean(tns_tree, hf_tns_abort, tvb,
|
|
|
|
0, 0, TRUE);
|
|
|
|
PROTO_ITEM_SET_HIDDEN(hidden_item);
|
2001-10-08 14:32:06 +00:00
|
|
|
}
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2009-09-24 20:00:21 +00:00
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, ", Abort");
|
2001-10-08 14:32:06 +00:00
|
|
|
|
|
|
|
if ( abort_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(abort_tree, hf_tns_abort_reason_user, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN);
|
2001-10-08 14:32:06 +00:00
|
|
|
}
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
if ( abort_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(abort_tree, hf_tns_abort_reason_system, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN);
|
2001-10-08 14:32:06 +00:00
|
|
|
}
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
if ( abort_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(abort_tree, hf_tns_abort_data, tvb,
|
2011-10-15 18:46:26 +00:00
|
|
|
offset, -1, ENC_ASCII|ENC_NA);
|
2001-10-08 14:32:06 +00:00
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void dissect_tns_marker(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
|
|
|
proto_tree *tree, proto_tree *tns_tree, int is_attention)
|
|
|
|
{
|
|
|
|
proto_tree *marker_tree = NULL, *ti;
|
2008-05-13 01:23:37 +00:00
|
|
|
proto_item *hidden_item;
|
2001-10-08 14:32:06 +00:00
|
|
|
|
|
|
|
if ( tree )
|
|
|
|
{
|
|
|
|
if ( is_attention )
|
|
|
|
{
|
2002-01-24 09:20:54 +00:00
|
|
|
ti = proto_tree_add_text(tns_tree, tvb, offset, -1,
|
|
|
|
"Marker");
|
2001-10-08 14:32:06 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2002-01-24 09:20:54 +00:00
|
|
|
ti = proto_tree_add_text(tns_tree, tvb, offset, -1,
|
|
|
|
"Attention");
|
2001-10-08 14:32:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
marker_tree = proto_item_add_subtree(ti, ett_tns_marker);
|
2008-05-13 01:23:37 +00:00
|
|
|
hidden_item = proto_tree_add_boolean(tns_tree, hf_tns_marker, tvb,
|
|
|
|
0, 0, TRUE);
|
|
|
|
PROTO_ITEM_SET_HIDDEN(hidden_item);
|
2001-10-08 14:32:06 +00:00
|
|
|
}
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2001-12-10 00:26:21 +00:00
|
|
|
if ( check_col(pinfo->cinfo, COL_INFO) )
|
2001-10-08 14:32:06 +00:00
|
|
|
{
|
|
|
|
if ( is_attention )
|
|
|
|
{
|
2001-12-10 00:26:21 +00:00
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, ", Marker");
|
2001-10-08 14:32:06 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2001-12-10 00:26:21 +00:00
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, ", Attention");
|
2001-10-08 14:32:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( marker_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(marker_tree, hf_tns_marker_type, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN);
|
2001-10-08 14:32:06 +00:00
|
|
|
}
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
if ( marker_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(marker_tree, hf_tns_marker_data_byte, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN);
|
2001-10-08 14:32:06 +00:00
|
|
|
}
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
if ( marker_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(marker_tree, hf_tns_marker_data_byte, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 1, ENC_BIG_ENDIAN);
|
2001-10-08 14:32:06 +00:00
|
|
|
}
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2001-10-06 16:48:00 +00:00
|
|
|
static void dissect_tns_redirect(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
|
|
|
proto_tree *tree, proto_tree *tns_tree)
|
|
|
|
{
|
|
|
|
proto_tree *redirect_tree = NULL, *ti;
|
2008-05-13 01:23:37 +00:00
|
|
|
proto_item *hidden_item;
|
2001-10-06 16:48:00 +00:00
|
|
|
|
|
|
|
if ( tree )
|
|
|
|
{
|
2002-01-24 09:20:54 +00:00
|
|
|
ti = proto_tree_add_text(tns_tree, tvb, offset, -1,
|
|
|
|
"Redirect");
|
2001-10-06 17:58:56 +00:00
|
|
|
redirect_tree = proto_item_add_subtree(ti, ett_tns_redirect);
|
2001-10-06 16:48:00 +00:00
|
|
|
|
2008-05-13 01:23:37 +00:00
|
|
|
hidden_item = proto_tree_add_boolean(tns_tree, hf_tns_redirect, tvb,
|
|
|
|
0, 0, TRUE);
|
|
|
|
PROTO_ITEM_SET_HIDDEN(hidden_item);
|
2001-10-06 16:48:00 +00:00
|
|
|
}
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2009-09-24 20:00:21 +00:00
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, ", Redirect");
|
2001-10-06 16:48:00 +00:00
|
|
|
|
|
|
|
if ( redirect_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(redirect_tree, hf_tns_redirect_data_length, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2001-10-06 16:48:00 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
if ( redirect_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(redirect_tree, hf_tns_redirect_data, tvb,
|
2011-10-15 18:46:26 +00:00
|
|
|
offset, -1, ENC_ASCII|ENC_NA);
|
2001-10-06 15:45:38 +00:00
|
|
|
}
|
1999-11-29 19:43:26 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2001-10-08 14:32:06 +00:00
|
|
|
static void dissect_tns_control(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
|
|
|
proto_tree *tree, proto_tree *tns_tree)
|
|
|
|
{
|
|
|
|
proto_tree *control_tree = NULL, *ti;
|
2008-05-13 01:23:37 +00:00
|
|
|
proto_item *hidden_item;
|
2001-10-08 14:32:06 +00:00
|
|
|
|
|
|
|
if ( tree )
|
|
|
|
{
|
2002-01-24 09:20:54 +00:00
|
|
|
ti = proto_tree_add_text(tns_tree, tvb, offset, -1,
|
|
|
|
"Control");
|
2001-10-08 14:32:06 +00:00
|
|
|
control_tree = proto_item_add_subtree(ti, ett_tns_control);
|
|
|
|
|
2008-05-13 01:23:37 +00:00
|
|
|
hidden_item = proto_tree_add_boolean(tns_tree, hf_tns_control, tvb,
|
|
|
|
0, 0, TRUE);
|
|
|
|
PROTO_ITEM_SET_HIDDEN(hidden_item);
|
2001-10-08 14:32:06 +00:00
|
|
|
}
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2009-09-24 20:00:21 +00:00
|
|
|
col_append_str(pinfo->cinfo, COL_INFO, ", Control");
|
2001-10-08 14:32:06 +00:00
|
|
|
|
|
|
|
if ( control_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(control_tree, hf_tns_control_cmd, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
2001-10-08 14:32:06 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
if ( control_tree )
|
|
|
|
{
|
2002-01-17 20:47:33 +00:00
|
|
|
proto_tree_add_item(control_tree, hf_tns_control_data, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, -1, ENC_NA);
|
2001-10-08 14:32:06 +00:00
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2002-07-08 22:57:55 +00:00
|
|
|
static guint
|
2006-10-31 09:29:07 +00:00
|
|
|
get_tns_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset)
|
2002-07-08 22:57:55 +00:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Get the length of the TNS message, including header
|
|
|
|
*/
|
|
|
|
return tvb_get_ntohs(tvb, offset);
|
|
|
|
}
|
1999-11-29 19:43:26 +00:00
|
|
|
|
2003-01-11 09:57:16 +00:00
|
|
|
static int
|
2001-02-03 08:21:47 +00:00
|
|
|
dissect_tns(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
2002-07-08 22:57:55 +00:00
|
|
|
{
|
2003-01-11 09:57:16 +00:00
|
|
|
guint8 type;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* First, do a sanity check to make sure what we have
|
|
|
|
* starts with a TNS PDU.
|
|
|
|
*/
|
|
|
|
if (tvb_bytes_exist(tvb, 4, 1)) {
|
|
|
|
/*
|
|
|
|
* Well, we have the packet type; let's make sure
|
|
|
|
* it's a known type.
|
|
|
|
*/
|
|
|
|
type = tvb_get_guint8(tvb, 4);
|
|
|
|
if (type < TNS_TYPE_CONNECT || type > TNS_TYPE_MAX)
|
|
|
|
return 0; /* it's not a known type */
|
|
|
|
}
|
|
|
|
|
2002-07-08 22:57:55 +00:00
|
|
|
tcp_dissect_pdus(tvb, pinfo, tree, tns_desegment, 2,
|
|
|
|
get_tns_pdu_len, dissect_tns_pdu);
|
2003-01-11 09:57:16 +00:00
|
|
|
return tvb_length(tvb);
|
2002-07-08 22:57:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
dissect_tns_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
1999-11-29 19:43:26 +00:00
|
|
|
{
|
1999-11-30 09:48:31 +00:00
|
|
|
proto_tree *tns_tree = NULL, *ti;
|
2008-05-13 01:23:37 +00:00
|
|
|
proto_item *hidden_item;
|
2001-02-03 08:21:47 +00:00
|
|
|
int offset = 0;
|
1999-11-29 19:43:26 +00:00
|
|
|
guint16 length;
|
|
|
|
guint16 type;
|
|
|
|
|
2009-08-09 06:26:46 +00:00
|
|
|
col_set_str(pinfo->cinfo, COL_PROTOCOL, "TNS");
|
Add the "Edit:Protocols..." feature which currently only implements
the following:
It is now possible to enable/disable a particular protocol decoding
(i.e. the protocol dissector is void or not). When a protocol
is disabled, it is displayed as Data and of course, all linked
sub-protocols are disabled as well.
Disabling a protocol could be interesting:
- in case of buggy dissectors
- in case of wrong heuristics
- for performance reasons
- to decode the data as another protocol (TODO)
Currently (if I am not wrong), all dissectors but NFS can be disabled
(and dissectors that do not register protocols :-)
I do not like the way the RPC sub-dissectors are disabled (in the
sub-dissectors) since this could be done in the RPC dissector itself,
knowing the sub-protocol hfinfo entry (this is why, I've not modified
the NFS one yet).
Two functions are added in proto.c :
gboolean proto_is_protocol_enabled(int n);
void proto_set_decoding(int n, gboolean enabled);
and two MACROs which can be used in dissectors:
OLD_CHECK_DISPLAY_AS_DATA(index, pd, offset, fd, tree)
CHECK_DISPLAY_AS_DATA(index, tvb, pinfo, tree)
See also the XXX in proto_dlg.c and proto.c around the new functions.
svn path=/trunk/; revision=2267
2000-08-13 14:09:15 +00:00
|
|
|
|
2001-12-10 00:26:21 +00:00
|
|
|
if (check_col(pinfo->cinfo, COL_INFO))
|
1999-11-29 19:43:26 +00:00
|
|
|
{
|
2007-10-23 05:50:00 +00:00
|
|
|
col_set_str(pinfo->cinfo, COL_INFO,
|
2010-12-20 05:35:29 +00:00
|
|
|
(pinfo->match_uint == pinfo->destport) ? "Request" : "Response");
|
1999-11-29 19:43:26 +00:00
|
|
|
}
|
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
if (tree)
|
1999-11-29 19:43:26 +00:00
|
|
|
{
|
2011-10-21 02:10:19 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_tns, tvb, 0, -1, ENC_NA);
|
1999-11-29 19:43:26 +00:00
|
|
|
tns_tree = proto_item_add_subtree(ti, ett_tns);
|
|
|
|
|
2010-12-20 05:35:29 +00:00
|
|
|
if (pinfo->match_uint == pinfo->destport)
|
1999-11-29 19:43:26 +00:00
|
|
|
{
|
2008-05-14 01:47:41 +00:00
|
|
|
hidden_item = proto_tree_add_boolean(tns_tree, hf_tns_request,
|
|
|
|
tvb, offset, 0, TRUE);
|
1999-11-29 19:43:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2008-05-13 01:23:37 +00:00
|
|
|
hidden_item = proto_tree_add_boolean(tns_tree, hf_tns_response,
|
|
|
|
tvb, offset, 0, TRUE);
|
1999-11-29 19:43:26 +00:00
|
|
|
}
|
2008-05-14 01:47:41 +00:00
|
|
|
PROTO_ITEM_SET_HIDDEN(hidden_item);
|
1999-11-29 19:43:26 +00:00
|
|
|
}
|
|
|
|
|
2001-02-03 08:21:47 +00:00
|
|
|
length = tvb_get_ntohs(tvb, offset);
|
1999-11-29 19:43:26 +00:00
|
|
|
if (tree)
|
|
|
|
{
|
2001-02-03 08:21:47 +00:00
|
|
|
proto_tree_add_uint(tns_tree, hf_tns_length, tvb,
|
1999-11-29 19:43:26 +00:00
|
|
|
offset, 2, length);
|
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
if ( tree )
|
|
|
|
{
|
2001-02-03 08:21:47 +00:00
|
|
|
proto_tree_add_item(tns_tree, hf_tns_packet_checksum, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
1999-11-29 19:43:26 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
2001-02-03 08:21:47 +00:00
|
|
|
type = tvb_get_guint8(tvb, offset);
|
1999-11-29 19:43:26 +00:00
|
|
|
if ( tree )
|
|
|
|
{
|
2001-02-03 08:21:47 +00:00
|
|
|
proto_tree_add_uint(tns_tree, hf_tns_packet_type, tvb,
|
1999-11-29 19:43:26 +00:00
|
|
|
offset, 1, type);
|
|
|
|
}
|
|
|
|
offset += 1;
|
|
|
|
|
2001-12-10 00:26:21 +00:00
|
|
|
if ( check_col(pinfo->cinfo, COL_INFO))
|
1999-11-29 19:43:26 +00:00
|
|
|
{
|
2001-12-10 00:26:21 +00:00
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, ", %s (%u)",
|
1999-11-29 19:43:26 +00:00
|
|
|
val_to_str(type, tns_type_vals, "Unknown"), type);
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( tree )
|
|
|
|
{
|
2001-02-03 08:21:47 +00:00
|
|
|
proto_tree_add_item(tns_tree, hf_tns_reserved_byte, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
offset, 1, ENC_NA);
|
1999-11-29 19:43:26 +00:00
|
|
|
}
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
if ( tree )
|
|
|
|
{
|
2001-02-03 08:21:47 +00:00
|
|
|
proto_tree_add_item(tns_tree, hf_tns_header_checksum, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
offset, 2, ENC_BIG_ENDIAN);
|
1999-11-29 19:43:26 +00:00
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
switch (type)
|
|
|
|
{
|
|
|
|
case TNS_TYPE_CONNECT:
|
2001-02-03 08:21:47 +00:00
|
|
|
dissect_tns_connect(tvb,offset,pinfo,tree,tns_tree);
|
1999-11-29 19:43:26 +00:00
|
|
|
break;
|
|
|
|
case TNS_TYPE_ACCEPT:
|
2001-02-03 08:21:47 +00:00
|
|
|
dissect_tns_accept(tvb,offset,pinfo,tree,tns_tree);
|
1999-11-29 19:43:26 +00:00
|
|
|
break;
|
2001-10-06 16:48:00 +00:00
|
|
|
case TNS_TYPE_REFUSE:
|
|
|
|
dissect_tns_refuse(tvb,offset,pinfo,tree,tns_tree);
|
|
|
|
break;
|
|
|
|
case TNS_TYPE_REDIRECT:
|
|
|
|
dissect_tns_redirect(tvb,offset,pinfo,tree,tns_tree);
|
|
|
|
break;
|
2001-10-08 14:32:06 +00:00
|
|
|
case TNS_TYPE_ABORT:
|
|
|
|
dissect_tns_abort(tvb,offset,pinfo,tree,tns_tree);
|
|
|
|
break;
|
|
|
|
case TNS_TYPE_MARKER:
|
|
|
|
dissect_tns_marker(tvb,offset,pinfo,tree,tns_tree, 0);
|
|
|
|
break;
|
|
|
|
case TNS_TYPE_ATTENTION:
|
|
|
|
dissect_tns_marker(tvb,offset,pinfo,tree,tns_tree, 1);
|
|
|
|
break;
|
|
|
|
case TNS_TYPE_CONTROL:
|
|
|
|
dissect_tns_control(tvb,offset,pinfo,tree,tns_tree);
|
|
|
|
break;
|
1999-11-29 19:43:26 +00:00
|
|
|
case TNS_TYPE_DATA:
|
2001-02-03 08:21:47 +00:00
|
|
|
dissect_tns_data(tvb,offset,pinfo,tree,tns_tree);
|
1999-11-29 19:43:26 +00:00
|
|
|
break;
|
|
|
|
default:
|
2002-05-30 01:56:55 +00:00
|
|
|
call_dissector(data_handle,
|
2009-08-16 12:36:22 +00:00
|
|
|
tvb_new_subset_remaining(tvb, offset), pinfo,
|
2002-05-30 01:56:55 +00:00
|
|
|
tns_tree);
|
|
|
|
break;
|
1999-11-29 19:43:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void proto_register_tns(void)
|
|
|
|
{
|
|
|
|
static hf_register_info hf[] = {
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_response, {
|
|
|
|
"Response", "tns.response", FT_BOOLEAN, BASE_NONE,
|
2001-06-18 02:18:27 +00:00
|
|
|
NULL, 0x0, "TRUE if TNS response", HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_request, {
|
|
|
|
"Request", "tns.request", FT_BOOLEAN, BASE_NONE,
|
2001-06-18 02:18:27 +00:00
|
|
|
NULL, 0x0, "TRUE if TNS request", HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_length, {
|
|
|
|
"Packet Length", "tns.length", FT_UINT16, BASE_DEC,
|
2001-06-18 02:18:27 +00:00
|
|
|
NULL, 0x0, "Length of TNS packet", HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_packet_checksum, {
|
|
|
|
"Packet Checksum", "tns.packet_checksum", FT_UINT16, BASE_HEX,
|
2001-06-18 02:18:27 +00:00
|
|
|
NULL, 0x0, "Checksum of Packet Data", HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_header_checksum, {
|
|
|
|
"Header Checksum", "tns.header_checksum", FT_UINT16, BASE_HEX,
|
2001-06-18 02:18:27 +00:00
|
|
|
NULL, 0x0, "Checksum of Header Data", HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
|
|
|
|
{ &hf_tns_version, {
|
|
|
|
"Version", "tns.version", FT_UINT16, BASE_DEC,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_compat_version, {
|
|
|
|
"Version (Compatible)", "tns.compat_version", FT_UINT16, BASE_DEC,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-06-05 17:41:59 +00:00
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_service_options, {
|
|
|
|
"Service Options", "tns.service_options", FT_UINT16, BASE_HEX,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-06-05 17:41:59 +00:00
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_sopt_flag_bconn, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Broken Connect Notify", "tns.so_flag.bconn", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x2000, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_sopt_flag_pc, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Packet Checksum", "tns.so_flag.pc", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x1000, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_sopt_flag_hc, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Header Checksum", "tns.so_flag.hc", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0800, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_sopt_flag_fd, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Full Duplex", "tns.so_flag.fd", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0400, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_sopt_flag_hd, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Half Duplex", "tns.so_flag.hd", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0200, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_sopt_flag_dc1, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Don't Care", "tns.so_flag.dc1", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0100, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_sopt_flag_dc2, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Don't Care", "tns.so_flag.dc2", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0080, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_sopt_flag_dio, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Direct IO to Transport", "tns.so_flag.dio", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0010, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_sopt_flag_ap, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Attention Processing", "tns.so_flag.ap", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0008, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_sopt_flag_ra, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Can Receive Attention", "tns.so_flag.ra", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0004, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_sopt_flag_sa, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Can Send Attention", "tns.so_flag.sa", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0002, NULL, HFILL }},
|
2002-06-05 17:41:59 +00:00
|
|
|
|
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_sdu_size, {
|
|
|
|
"Session Data Unit Size", "tns.sdu_size", FT_UINT16, BASE_DEC,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_max_tdu_size, {
|
|
|
|
"Maximum Transmission Data Unit Size", "tns.max_tdu_size", FT_UINT16, BASE_DEC,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-06-05 17:41:59 +00:00
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_nt_proto_characteristics, {
|
|
|
|
"NT Protocol Characteristics", "tns.nt_proto_characteristics", FT_UINT16, BASE_HEX,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_hangon, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Hangon to listener connect", "tns.ntp_flag.hangon", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x8000, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_crel, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Confirmed release", "tns.ntp_flag.crel", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x4000, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_tduio, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"TDU based IO", "tns.ntp_flag.tduio", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x2000, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_srun, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Spawner running", "tns.ntp_flag.srun", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x1000, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_dtest, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Data test", "tns.ntp_flag.dtest", FT_BOOLEAN, 16,
|
2010-09-23 21:46:31 +00:00
|
|
|
NULL, 0x0800, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_cbio, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Callback IO supported", "tns.ntp_flag.cbio", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0400, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_asio, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"ASync IO Supported", "tns.ntp_flag.asio", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0200, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_pio, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Packet oriented IO", "tns.ntp_flag.pio", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0100, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_grant, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Can grant connection to another", "tns.ntp_flag.grant", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0080, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_handoff, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Can handoff connection to another", "tns.ntp_flag.handoff", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0040, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_sigio, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Generate SIGIO signal", "tns.ntp_flag.sigio", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0020, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_sigpipe, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Generate SIGPIPE signal", "tns.ntp_flag.sigpipe", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0010, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_sigurg, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Generate SIGURG signal", "tns.ntp_flag.sigurg", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0008, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_urgentio, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Urgent IO supported", "tns.ntp_flag.urgentio", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0004, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_fdio, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Full duplex IO supported", "tns.ntp_flag.dfio", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0002, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_ntp_flag_testop, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Test operation", "tns.ntp_flag.testop", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x0001, NULL, HFILL }},
|
2002-06-05 17:41:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_line_turnaround, {
|
|
|
|
"Line Turnaround Value", "tns.line_turnaround", FT_UINT16, BASE_DEC,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_value_of_one, {
|
|
|
|
"Value of 1 in Hardware", "tns.value_of_one", FT_BYTES, BASE_NONE,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2001-10-08 14:32:06 +00:00
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_connect, {
|
|
|
|
"Connect", "tns.connect", FT_BOOLEAN, BASE_NONE,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_connect_data_length, {
|
|
|
|
"Length of Connect Data", "tns.connect_data_length", FT_UINT16, BASE_DEC,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_connect_data_offset, {
|
|
|
|
"Offset to Connect Data", "tns.connect_data_offset", FT_UINT16, BASE_DEC,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_connect_data_max, {
|
|
|
|
"Maximum Receivable Connect Data", "tns.connect_data_max", FT_UINT32, BASE_DEC,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-06-05 17:41:59 +00:00
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_connect_flags0, {
|
|
|
|
"Connect Flags 0", "tns.connect_flags0", FT_UINT8, BASE_HEX,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_connect_flags1, {
|
|
|
|
"Connect Flags 1", "tns.connect_flags1", FT_UINT8, BASE_HEX,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-06-05 17:41:59 +00:00
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_conn_flag_nareq, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"NA services required", "tns.connect_flags.nareq", FT_BOOLEAN, 8,
|
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
|
|
|
NULL, 0x10, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_conn_flag_nalink, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"NA services linked in", "tns.connect_flags.nalink", FT_BOOLEAN, 8,
|
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
|
|
|
NULL, 0x08, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_conn_flag_enablena, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"NA services enabled", "tns.connect_flags.enablena", FT_BOOLEAN, 8,
|
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
|
|
|
NULL, 0x04, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_conn_flag_ichg, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Interchange is involved", "tns.connect_flags.ichg", FT_BOOLEAN, 8,
|
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
|
|
|
NULL, 0x02, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_conn_flag_wantna, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"NA services wanted", "tns.connect_flags.wantna", FT_BOOLEAN, 8,
|
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
|
|
|
NULL, 0x01, NULL, HFILL }},
|
2002-06-05 17:41:59 +00:00
|
|
|
|
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_trace_cf1, {
|
|
|
|
"Trace Cross Facility Item 1", "tns.trace_cf1", FT_UINT32, BASE_HEX,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_trace_cf2, {
|
|
|
|
"Trace Cross Facility Item 2", "tns.trace_cf2", FT_UINT32, BASE_HEX,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_trace_cid, {
|
|
|
|
"Trace Unique Connection ID", "tns.trace_cid", FT_UINT64, BASE_HEX,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_connect_data, {
|
|
|
|
"Connect Data", "tns.connect_data", FT_STRING, BASE_NONE,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2001-10-06 16:48:00 +00:00
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_accept, {
|
|
|
|
"Accept", "tns.accept", FT_BOOLEAN, BASE_NONE,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_accept_data_length, {
|
|
|
|
"Accept Data Length", "tns.accept_data_length", FT_UINT16, BASE_DEC,
|
2001-10-06 16:48:00 +00:00
|
|
|
NULL, 0x0, "Length of Accept Data", HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_accept_data, {
|
|
|
|
"Accept Data", "tns.accept_data", FT_STRING, BASE_NONE,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_accept_data_offset, {
|
|
|
|
"Offset to Accept Data", "tns.accept_data_offset", FT_UINT16, BASE_DEC,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2001-10-06 16:48:00 +00:00
|
|
|
|
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_refuse, {
|
|
|
|
"Refuse", "tns.refuse", FT_BOOLEAN, BASE_NONE,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_refuse_reason_user, {
|
|
|
|
"Refuse Reason (User)", "tns.refuse_reason_user", FT_UINT8, BASE_HEX,
|
2001-10-06 16:48:00 +00:00
|
|
|
NULL, 0x0, "Refuse Reason from Application", HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_refuse_reason_system, {
|
|
|
|
"Refuse Reason (System)", "tns.refuse_reason_system", FT_UINT8, BASE_HEX,
|
2001-10-06 16:48:00 +00:00
|
|
|
NULL, 0x0, "Refuse Reason from System", HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_refuse_data_length, {
|
|
|
|
"Refuse Data Length", "tns.refuse_data_length", FT_UINT16, BASE_DEC,
|
2001-10-06 16:48:00 +00:00
|
|
|
NULL, 0x0, "Length of Refuse Data", HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_refuse_data, {
|
|
|
|
"Refuse Data", "tns.refuse_data", FT_STRING, BASE_NONE,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2001-10-06 16:48:00 +00:00
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_abort, {
|
|
|
|
"Abort", "tns.abort", FT_BOOLEAN, BASE_NONE,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_abort_reason_user, {
|
|
|
|
"Abort Reason (User)", "tns.abort_reason_user", FT_UINT8, BASE_HEX,
|
2001-10-08 14:32:06 +00:00
|
|
|
NULL, 0x0, "Abort Reason from Application", HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_abort_reason_system, {
|
|
|
|
"Abort Reason (User)", "tns.abort_reason_system", FT_UINT8, BASE_HEX,
|
2001-10-08 14:32:06 +00:00
|
|
|
NULL, 0x0, "Abort Reason from System", HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_abort_data, {
|
|
|
|
"Abort Data", "tns.abort_data", FT_STRING, BASE_NONE,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2001-10-08 14:32:06 +00:00
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_marker, {
|
|
|
|
"Marker", "tns.marker", FT_BOOLEAN, BASE_NONE,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_marker_type, {
|
|
|
|
"Marker Type", "tns.marker.type", FT_UINT8, BASE_HEX,
|
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
|
|
|
VALS(tns_marker_types), 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_marker_data_byte, {
|
|
|
|
"Marker Data Byte", "tns.marker.databyte", FT_UINT8, BASE_HEX,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_marker_data, {
|
|
|
|
"Marker Data", "tns.marker.data", FT_UINT16, BASE_HEX,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2001-10-08 14:32:06 +00:00
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_control, {
|
|
|
|
"Control", "tns.control", FT_BOOLEAN, BASE_NONE,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_control_cmd, {
|
|
|
|
"Control Command", "tns.control.cmd", FT_UINT16, BASE_HEX,
|
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
|
|
|
VALS(tns_control_cmds), 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_control_data, {
|
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
|
|
|
"Control Data", "tns.control.data", FT_BYTES, BASE_NONE,
|
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2001-10-08 14:32:06 +00:00
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_redirect, {
|
|
|
|
"Redirect", "tns.redirect", FT_BOOLEAN, BASE_NONE,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_redirect_data_length, {
|
|
|
|
"Redirect Data Length", "tns.redirect_data_length", FT_UINT16, BASE_DEC,
|
2001-10-06 16:48:00 +00:00
|
|
|
NULL, 0x0, "Length of Redirect Data", HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_redirect_data, {
|
|
|
|
"Redirect Data", "tns.redirect_data", FT_STRING, BASE_NONE,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2001-10-06 16:48:00 +00:00
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_data, {
|
|
|
|
"Data", "tns.data", FT_BOOLEAN, BASE_NONE,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
|
|
|
|
{ &hf_tns_data_flag, {
|
|
|
|
"Data Flag", "tns.data_flag", FT_UINT16, BASE_HEX,
|
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
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_data_flag_send, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Send Token", "tns.data_flag.send", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x1, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_data_flag_rc, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Request Confirmation", "tns.data_flag.rc", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x2, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_data_flag_c, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Confirmation", "tns.data_flag.c", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x4, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_data_flag_reserved, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Reserved", "tns.data_flag.reserved", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x8, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_data_flag_more, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"More Data to Come", "tns.data_flag.more", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x20, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_data_flag_eof, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"End of File", "tns.data_flag.eof", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x40, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_data_flag_dic, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Do Immediate Confirmation", "tns.data_flag.dic", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x80, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_data_flag_rts, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Request To Send", "tns.data_flag.rts", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x100, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_data_flag_sntt, {
|
2003-01-31 03:17:56 +00:00
|
|
|
"Send NT Trailer", "tns.data_flag.sntt", FT_BOOLEAN, 16,
|
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
|
|
|
NULL, 0x200, NULL, HFILL }},
|
2001-10-06 17:58:56 +00:00
|
|
|
|
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_reserved_byte, {
|
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
|
|
|
"Reserved Byte", "tns.reserved_byte", FT_BYTES, BASE_NONE,
|
|
|
|
NULL, 0x0, NULL, HFILL }},
|
2002-08-28 21:04:11 +00:00
|
|
|
{ &hf_tns_packet_type, {
|
|
|
|
"Packet Type", "tns.type", FT_UINT8, BASE_DEC,
|
|
|
|
VALS(tns_type_vals), 0x0, "Type of TNS packet", HFILL }}
|
2001-10-06 17:58:56 +00:00
|
|
|
|
1999-11-29 19:43:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static gint *ett[] = {
|
|
|
|
&ett_tns,
|
1999-11-30 17:58:32 +00:00
|
|
|
&ett_tns_connect,
|
2001-10-06 15:45:38 +00:00
|
|
|
&ett_tns_accept,
|
2001-10-06 17:58:56 +00:00
|
|
|
&ett_tns_refuse,
|
2001-10-08 14:32:06 +00:00
|
|
|
&ett_tns_abort,
|
2001-10-06 17:58:56 +00:00
|
|
|
&ett_tns_redirect,
|
2001-10-08 14:32:06 +00:00
|
|
|
&ett_tns_marker,
|
|
|
|
&ett_tns_attention,
|
|
|
|
&ett_tns_control,
|
2001-10-06 17:58:56 +00:00
|
|
|
&ett_tns_data,
|
|
|
|
&ett_tns_data_flag,
|
2002-06-05 17:41:59 +00:00
|
|
|
&ett_tns_sopt_flag,
|
|
|
|
&ett_tns_ntp_flag,
|
|
|
|
&ett_tns_conn_flag,
|
1999-11-30 17:58:32 +00:00
|
|
|
&ett_sql
|
1999-11-29 19:43:26 +00:00
|
|
|
};
|
2002-07-08 22:57:55 +00:00
|
|
|
module_t *tns_module;
|
|
|
|
|
1999-11-29 19:43:26 +00:00
|
|
|
proto_tns = proto_register_protocol(
|
2001-01-03 06:56:03 +00:00
|
|
|
"Transparent Network Substrate Protocol", "TNS", "tns");
|
1999-11-29 19:43:26 +00:00
|
|
|
proto_register_field_array(proto_tns, hf, array_length(hf));
|
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
2002-07-08 22:57:55 +00:00
|
|
|
|
|
|
|
tns_module = prefs_register_protocol(proto_tns, NULL);
|
|
|
|
prefs_register_bool_preference(tns_module, "desegment_tns_messages",
|
2004-08-21 09:02:52 +00:00
|
|
|
"Reassemble TNS messages spanning multiple TCP segments",
|
|
|
|
"Whether the TNS dissector should reassemble messages spanning multiple TCP segments. "
|
|
|
|
"To use this option, you must also enable \"Allow subdissectors to reassemble TCP streams\" in the TCP protocol settings.",
|
2002-07-08 22:57:55 +00:00
|
|
|
&tns_desegment);
|
1999-11-29 19:43:26 +00:00
|
|
|
}
|
2000-04-08 07:07:42 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
proto_reg_handoff_tns(void)
|
|
|
|
{
|
2001-12-03 04:00:26 +00:00
|
|
|
dissector_handle_t tns_handle;
|
|
|
|
|
2003-01-11 09:57:16 +00:00
|
|
|
tns_handle = new_create_dissector_handle(dissect_tns, proto_tns);
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("tcp.port", TCP_PORT_TNS, tns_handle);
|
2001-11-26 04:52:51 +00:00
|
|
|
data_handle = find_dissector("data");
|
2000-04-08 07:07:42 +00:00
|
|
|
}
|