static int ett_fcgi = -1;
static int ett_fcgi_begin_request = -1;
-static int ett_fcgi_abort_request = -1;
static int ett_fcgi_end_request = -1;
static int ett_fcgi_params = -1;
static void
dissect_abort_request(tvbuff_t *tvb, proto_tree *fcgi_tree, gint offset, guint16 len)
{
- proto_item *ar;
- proto_tree *ar_tree;
-
- ar = proto_tree_add_text(fcgi_tree, tvb, offset, len, "Abort Request:");
- ar_tree = proto_item_add_subtree(ar, ett_fcgi_abort_request);
+ proto_tree_add_text(fcgi_tree, tvb, offset, len, "Abort Request:");
return;
}
static gint *ett[] = {
&ett_fcgi,
&ett_fcgi_begin_request,
- &ett_fcgi_abort_request,
&ett_fcgi_end_request,
&ett_fcgi_params
};
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-#include <stdlib.h>
+
#include <glib.h>
#include <epan/packet.h>
#include <epan/proto.h>
static gint ett_grh = -1;
static gint ett_bth = -1;
static gint ett_rwh = -1;
-static gint ett_rawdata = -1;
static gint ett_rdeth = -1;
static gint ett_deth = -1;
static gint ett_reth = -1;
proto_item *base_transport_header_item = NULL;
/* Raw Data */
- proto_tree *RAWDATA_header_tree;
proto_item *RAWDATA_header_item;
guint8 lnh_val = 0; /* Link Next Header Value */
gint offset = 0; /* Current Offset */
/* Unknown Packet */
RAWDATA_header_item = proto_tree_add_item(all_headers_tree, hf_infiniband_raw_data, tvb, offset, -1, FALSE);
proto_item_set_text(RAWDATA_header_item, "%s", "Unknown Raw Data - IB Encapsulated");
- RAWDATA_header_tree = proto_item_add_subtree(RAWDATA_header_item, ett_rawdata);
break;
}
&ett_grh,
&ett_bth,
&ett_rwh,
- &ett_rawdata,
&ett_rdeth,
&ett_deth,
&ett_reth,
static gint ett_krb_kerberos = -1;
static gint ett_krb_TransitedEncoding = -1;
static gint ett_krb_PAC_LOGON_INFO = -1;
-static gint ett_krb_PAC_CREDENTIAL_TYPE = -1;
static gint ett_krb_PAC_SERVER_CHECKSUM = -1;
static gint ett_krb_PAC_PRIVSVR_CHECKSUM = -1;
static gint ett_krb_PAC_CLIENT_INFO_TYPE = -1;
static int
dissect_krb5_PAC_CREDENTIAL_TYPE(proto_tree *parent_tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_)
{
- proto_item *item=NULL;
- proto_tree *tree=NULL;
-
- item=proto_tree_add_item(parent_tree, hf_krb_PAC_CREDENTIAL_TYPE, tvb, offset, tvb_length_remaining(tvb, offset), FALSE);
- if(parent_tree){
- tree=proto_item_add_subtree(item, ett_krb_PAC_CREDENTIAL_TYPE);
- }
+ proto_tree_add_item(parent_tree, hf_krb_PAC_CREDENTIAL_TYPE, tvb, offset, tvb_length_remaining(tvb, offset), FALSE);
/*qqq*/
return offset;
&ett_krb_TransitedEncoding,
&ett_krb_PAC,
&ett_krb_PAC_LOGON_INFO,
- &ett_krb_PAC_CREDENTIAL_TYPE,
&ett_krb_PAC_SERVER_CHECKSUM,
&ett_krb_PAC_PRIVSVR_CHECKSUM,
&ett_krb_PAC_CLIENT_INFO_TYPE,
dissect_cb_entry(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree)
{
proto_item* lock_item = NULL;
- proto_tree* lock_tree = NULL;
+ /* proto_tree* lock_tree = NULL; */
int old_offset = offset;
lock_item = proto_tree_add_item(tree, hf_nispluscb_entry,
tvb, offset, -1, FALSE);
- lock_tree = proto_item_add_subtree(lock_item, ett_nispluscb_entry);
+ /* lock_tree = proto_item_add_subtree(lock_item, ett_nispluscb_entry); */
/*XXXXX Not implemented yet*/
* a matching code. If found, we add to the display tree and
* then call the dissector. If it is not, we just post an
* "unknown" clv entry using the passed in unknown clv tree id.
+ * XXX: The "unknown tree id" is an 'ett' index for use
+ * when creating a subtree;
+ * Since the 'unknown' subtree was not actually used in the
+ * code below, what was the intention for this ?
+ * For now: code related to creating an 'unknown' subtrree
+ * disabled.
*
* Input:
* tvbuff_t * : tvbuffer for packet data
*/
static void
nlsp_dissect_clvs(tvbuff_t *tvb, proto_tree *tree, int offset,
- const nlsp_clv_handle_t *opts, int len, int unknown_tree_id)
+ const nlsp_clv_handle_t *opts, int len, int unknown_tree_id _U_)
{
guint8 code;
guint8 length;
ti = proto_tree_add_text(tree, tvb, offset - 2,
length + 2, "Unknown code %u (%u)",
code, length);
+#if 0 /* XXX: ?? */
clv_tree = proto_item_add_subtree(ti,
unknown_tree_id );
} else {
clv_tree = NULL;
+#endif
}
}
offset += length;
static void
dissect_pgsql(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
- conversation_t *cv;
+ /* conversation_t *cv; */
first_message = TRUE;
/* We don't use conversation data yet, but... */
- cv = find_or_create_conversation(pinfo);
+ /* cv = find_or_create_conversation(pinfo); */
col_set_str(pinfo->cinfo, COL_PROTOCOL, "PGSQL");
if (check_col(pinfo->cinfo, COL_INFO))
/* Initialize the subtree pointers */
static gint ett_xtp = -1;
-static gint ett_xtp_key = -1;
static gint ett_xtp_cmd = -1;
static gint ett_xtp_cmd_options = -1;
static gint ett_xtp_cmd_ptype = -1;
offset = 0;
ti = proto_tree_add_uint64(xtp_tree, hf_xtp_key,
tvb, offset, 8, xtph->key);
- xtp_subtree = proto_item_add_subtree(ti, ett_xtp_key);
offset += 8;
/* cmd(4) */
ti = proto_tree_add_uint(xtp_tree, hf_xtp_cmd,
static gint *ett[] = {
&ett_xtp,
- &ett_xtp_key,
&ett_xtp_cmd,
&ett_xtp_cmd_options,
&ett_xtp_cmd_ptype,