(Code commented out since it may be required in the future (at least in some cases).
svn path=/trunk/; revision=37723
dissect_bfield(gboolean dect_packet_type _U_, guint8 ba,
packet_info *pinfo _U_, tvbuff_t *tvb, gint offset, proto_tree *DectTree, proto_tree *ColumnsTree)
{
- guint8 xcrc, xcrclen;
+ guint8 xcrc/*, xcrclen*/;
guint16 blen;
gint start_offset;
char *bfield_str;
case 5:
case 6:
blen=40;
- xcrclen=4;
+ /*xcrclen=4;*/
bfield_short_str="Full Slot";
bfield_str="Full Slot (320 bit data, 4 bit xcrc)";
break;
case 2:
blen=100;
- xcrclen=4;
+ /*xcrclen=4;*/
bfield_short_str="Double Slot";
bfield_str="Double Slot (800 bit data, 4 bit xcrc)";
break;
case 4:
blen=10;
- xcrclen=4;
+ /*xcrclen=4;*/
bfield_short_str="Half Slot";
bfield_str="Half Slot (80 bit data, 4 bit xcrc)";
case 7:
default:
blen=0;
- xcrclen=0;
+ /*xcrclen=0;*/
bfield_short_str="No B-Field";
bfield_str="No B-Field";
tvbuff_t *next_tvb;
int offset = 0, next_offset;
int vft_offset = -1;
- gboolean is_lastframe_inseq, is_1frame_inseq, is_valid_frame;
+ gboolean is_lastframe_inseq, is_1frame_inseq/*, is_valid_frame*/;
gboolean is_exchg_resp = 0;
fragment_data *fcfrag_head;
guint32 frag_id;
guint32 param;
guint16 real_seqcnt;
guint8 ftype;
- gboolean is_ack;
+ /*gboolean is_ack;*/
static fc_hdr fchdr;
itlq_nexus_t *fc_ex=NULL;
fchdr.itlq=fc_ex;
- is_ack = ((fchdr.r_ctl == 0xC0) || (fchdr.r_ctl == 0xC1));
+ /*is_ack = ((fchdr.r_ctl == 0xC0) || (fchdr.r_ctl == 0xC1));*/
/* There are two ways to determine if this is the first frame of a
* sequence. Either:
is_lastframe_inseq = ((pinfo->sof_eof & PINFO_EOF_LAST_FRAME) == PINFO_EOF_LAST_FRAME);
is_lastframe_inseq |= fchdr.fctl & FC_FCTL_SEQ_LAST;
- is_valid_frame = ((pinfo->sof_eof & 0x40) == 0x40);
+ /*is_valid_frame = ((pinfo->sof_eof & 0x40) == 0x40);*/
ftype = fc_get_ftype (fchdr.r_ctl, fchdr.type);
{
proto_tree *lapdm_tree, *addr_tree, *length_tree;
proto_item *lapdm_ti, *addr_ti, *length_ti;
- guint8 addr, length, cr, sapi, len, n_s;
+ guint8 addr, length, cr, sapi, len/*, n_s*/;
int control;
gboolean m;
tvbuff_t *payload;
sapi = (addr & LAPDM_SAPI) >> LAPDM_SAPI_SHIFT;
len = (length & LAPDM_LEN) >> LAPDM_LEN_SHIFT;
- n_s = (control & XDLC_N_S_MASK) >> XDLC_N_S_SHIFT;
+ /*n_s = (control & XDLC_N_S_MASK) >> XDLC_N_S_SHIFT;*/
m = (length & LAPDM_M) >> LAPDM_M_SHIFT;
available_length = tvb_length(tvb) - LAPDM_HEADER_LEN;
char name[(NETBIOS_NAME_LEN - 1)*4 + 1];
int name_type;
char node_name[(NETBIOS_NAME_LEN - 1)*4 + 1];
- int node_name_type = 0;
+ /*int node_name_type = 0;*/
tvbuff_t *next_tvb;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "NMPI");
opcode = tvb_get_guint8(tvb, offset);
nmpi_name_type = tvb_get_guint8(tvb, offset+1);
name_type = get_netbios_name(tvb, offset+4, name, (NETBIOS_NAME_LEN - 1)*4 + 1);
- node_name_type = get_netbios_name(tvb, offset+20, node_name, (NETBIOS_NAME_LEN - 1)*4 + 1);
+ /*node_name_type = */get_netbios_name(tvb, offset+20, node_name, (NETBIOS_NAME_LEN - 1)*4 + 1);
if (check_col(pinfo->cinfo, COL_INFO)) {
switch (opcode) {
void
dissect_nmas_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ncp_tree, ncp_req_hash_value *request_value)
{
- guint8 func, subfunc = 0;
+ guint8 /*func,*/ subfunc;
guint32 msg_length=0, cur_string_len=0;
guint32 foffset;
guint32 subverb=0;
proto_item *aitem;
foffset = 6;
- func = tvb_get_guint8(tvb, foffset);
+ /*func = tvb_get_guint8(tvb, foffset);*/
foffset += 1;
subfunc = tvb_get_guint8(tvb, foffset);
foffset += 1;
void
dissect_sss_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ncp_tree, ncp_req_hash_value *request_value)
{
- guint8 func, subfunc = 0;
+ guint8 /*func,*/ subfunc = 0;
guint32 subverb=0;
guint32 msg_length=0;
guint32 foffset= 0;
return;
}
foffset = 6;
- func = tvb_get_guint8(tvb, foffset);
+ /*func = tvb_get_guint8(tvb, foffset);*/
foffset += 1;
subfunc = tvb_get_guint8(tvb, foffset);
foffset += 1;
proto_item *root_ti;
int tree_start_offset = offset;
guint8 rx;
- guint8 contributing_csrcs;
+ /*guint8 contributing_csrcs;*/
guint16 sequence_number;
guint32 timestamp;
guint8 tis=0, tss=0;
/* V | P | RX | CC */
rx = tvb_get_guint8(tvb, offset) & 0x10;
proto_tree_add_item(dynamic_rtp_tree, hf_pdcp_lte_rohc_dynamic_rtp_rx, tvb, offset, 1, FALSE);
- contributing_csrcs = tvb_get_guint8(tvb, offset) & 0x0f;
+ /*contributing_csrcs = tvb_get_guint8(tvb, offset) & 0x0f;*/
proto_tree_add_item(dynamic_rtp_tree, hf_pdcp_lte_rohc_dynamic_rtp_cc, tvb, offset, 1, FALSE);
offset += 1;
char *ptr = NULL;
proto_item *item = NULL, *config_item = NULL;
proto_tree *tree = NULL, *config_tree = NULL;
- guint8 truncated = 0;
+ /*guint8 truncated = 0;*/
if (parent_tree)
{
{
total_config_bytes = length_remaining;
- truncated = 1;
+ /*truncated = 1;*/
}
bytes_processed = 0;
proto_item *ti;
proto_tree *rsip_tree;
guint8 msgtype;
- gboolean msgcnt_required;
+ /*gboolean msgcnt_required;*/
int eoff;
msgtype = tvb_get_guint8(tvb, 1);
- msgcnt_required = (pinfo->ipproto == IP_PROTO_UDP)? TRUE : FALSE;
+ /*msgcnt_required = (pinfo->ipproto == IP_PROTO_UDP)? TRUE : FALSE;*/
col_set_str(pinfo->cinfo, COL_PROTOCOL, "RSIP");
{
smb_info_t *smb_info = pinfo->private_data;
smb_transact_info_t *trp = NULL;
- int offset = 0, start_offset;
+ int offset = 0/*, start_offset*/;
guint16 cmd;
guint16 status;
int convert;
lanman = find_lanman(cmd);
/* request parameters */
- start_offset = offset;
+ /*start_offset = offset;*/
offset = dissect_request_parameters(p_tvb, offset, pinfo, tree,
param_descrip, lanman->req, &has_data);
/* guchar * ivp; */
gint ret;
/* gint i; */
- gcry_cipher_hd_t c;
+ /* gcry_cipher_hd_t c; */
ret=0;
- c=(gcry_cipher_hd_t)*cipher;
+ /*c=(gcry_cipher_hd_t)*cipher;*/
ssl_debug_printf("--------------------------------------------------------------------");
/*for(ivp=c->iv,i=0; i < iv_len; i++ )
-/* packet-3com-tapa.c
+/* packet-tapa.c
* Routines for the disassembly of the Trapeze TAPA protocol
*
* $Id$
{ 0, NULL }
};
+#if 0
static const value_string tapa_discover_unknown_vals[] = {
{ 0, NULL }
};
+#endif
static gboolean
check_ascii(tvbuff_t *tvb, gint offset, gint length)
guint8 item_type;
gint item_length;
const gchar *item_text;
- const gchar *item_type_text;
+ /*const gchar *item_type_text;*/
gboolean is_ascii;
while (remaining > 0) {
item_type = tvb_get_guint8(tvb, offset);
- item_type_text = val_to_str(item_type, tapa_discover_unknown_vals, "%d");
+ /*item_type_text = val_to_str(item_type, tapa_discover_unknown_vals, "%d");*/
item_length = tvb_get_ntohs(tvb, offset + 2) - 4;
DISSECTOR_ASSERT(item_length > 0);
dissect_v52_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
int offset = 4;
- guint8 info_element, info_element_length;
- int old_offset;
+ guint8 info_element, info_element_length;
+ /*int old_offset;*/
int singleoctet;
while(tvb_length_remaining(tvb,offset)){
singleoctet = 0;
- old_offset = offset;
+ /* old_offset = offset; */
info_element = tvb_get_guint8(tvb, offset);
switch(info_element){
case PSTN_SEQUENCE_NUMBER:
if (singleoctet == 1) {
offset += 1;
}
-/*
+#if 0
if (old_offset <= offset) {
expert_add_info_format(pinfo, NULL, PI_MALFORMED, PI_WARN, "Zero-length information element");
return;
}
-*/
+#endif
}
}
static int
dissect_x224_cr(packet_info *pinfo _U_, proto_tree *tree, tvbuff_t *tvb, int offset, x224_conv_info_t *x224_info _U_)
{
- guint8 class;
+ /*guint8 class;*/
gint len, next_offset;
/*DST-REF is always 0 */
offset+=2;
/* class options */
- class = tvb_get_guint8(tvb, offset);
+ /*class = tvb_get_guint8(tvb, offset);*/
proto_tree_add_item(tree, hf_x224_class, tvb, offset, 1, FALSE);
offset+=1;