{
proto_item *item;
nw_date_t nw_date;
- gint offset;
-
- offset = ptvcursor_current_offset(ptvc);
item = ptvcursor_add(ptvc, *rec->hf_ptr,
rec->length, rec->endianness);
{
proto_item *item;
nw_time_t nw_time;
- gint offset;
-
- offset = ptvcursor_current_offset(ptvc);
item = ptvcursor_add(ptvc, *rec->hf_ptr,
rec->length, rec->endianness);
{
proto_item *item;
/* nw_uni_t nw_uni; */
- guint offset;
/* nw_uni.buffer[0] = '\0'; */
- offset = ptvcursor_current_offset(ptvc);
item = ptvcursor_add(ptvc, *rec->hf_ptr,
rec->length, rec->endianness);
{
guint length;
guint i;
- char char_val;
length = (guint) strlen(check_string);
for (i = 0 ; i < length-1 ; i++ ) {
- char_val = check_string[i+1];
if (check_string[i] == 0x25 && check_string[i+1] == 0x64) { /* %d Digits*/
return 0;
}
const char *error_string;
guint32 nds_offset = 0;
guint32 nds_error_code = 0;
- guint32 nds_reply_buffer = 0;
+ /*guint32 nds_reply_buffer = 0;*/
const char *nds_error_string = NULL;
- guint32 nds_frag=0;
+ /*guint32 nds_frag=0;*/
proto_item *expert_item;
guint8 conn_stat;
ncp_rec->subfunc==0x02 && (tvb_reported_length_remaining(tvb, 8) >= 8))
{
nds_offset = 8;
- nds_reply_buffer = tvb_get_letohl(tvb, nds_offset);
+ /*nds_reply_buffer = tvb_get_letohl(tvb, nds_offset);*/
nds_offset += 4;
- nds_frag = tvb_get_letohl(tvb, nds_offset);
+ /*nds_frag = tvb_get_letohl(tvb, nds_offset);*/
nds_offset += 4;
/*
* Is the possibly-reassembled reply large enough to have
int i;
address local_addr, remote_addr;
- guint16 local_port = 0, remote_port = 0, ipv4_id = 0, icmp_id = 0;
+ guint16 local_port = 0, remote_port = 0/*, ipv4_id = 0, icmp_id = 0*/;
guint32 uid = 0, pid = 0;
int uname_len;
gchar *uname_str = NULL;
case VENDOR_CACE << 16 | 6: /* caceLocalIPv4id */
ti = proto_tree_add_item(pdutree, hf_pie_cace_local_ipv4_id,
tvb, offset, length, ENC_BIG_ENDIAN);
- ipv4_id = tvb_get_ntohs(tvb, offset);
- got_flags |= GOT_IPv4_ID;
+ /*ipv4_id = tvb_get_ntohs(tvb, offset);*/
+ /*got_flags |= GOT_IPv4_ID;*/
break;
case VENDOR_CACE << 16 | 7: /* caceLocalICMPid */
ti = proto_tree_add_item(pdutree, hf_pie_cace_local_icmp_id,
tvb, offset, length, ENC_BIG_ENDIAN);
- icmp_id = tvb_get_ntohs(tvb, offset);
- got_flags |= GOT_ICMP_ID;
+ /*icmp_id = tvb_get_ntohs(tvb, offset);*/
+ /*got_flags |= GOT_ICMP_ID;*/
break;
case VENDOR_CACE << 16 | 8: /* caceLocalProcessUserId */
{
guint fh3_len;
guint fh3_len_full;
- guint fh3_fill;
+ /*guint fh3_fill;*/
proto_item* fitem = NULL;
proto_tree* ftree = NULL;
int fh_offset,fh_length;
fh3_len = tvb_get_ntohl(tvb, offset+0);
fh3_len_full = rpc_roundup(fh3_len);
- fh3_fill = fh3_len_full - fh3_len;
+ /*fh3_fill = fh3_len_full - fh3_len;*/
if (tree) {
fitem = proto_tree_add_text(tree, tvb, offset, 4+fh3_len_full,
{
guint32 ops, ops_counter, summary_counter;
guint opcode;
- guint name_offset=0;
+ /*guint name_offset=0;*/
proto_item *fitem;
proto_tree *ftree = NULL;
proto_tree *newftree = NULL;
break;
case NFS4_OP_LOOKUP:
- name_offset=offset;
+ /*name_offset=offset;*/
offset = dissect_nfs_utf8string(tvb, offset, newftree,
hf_nfs_component4, &name);
if (nfs_file_name_snooping){
proto_item *fitem;
proto_tree *ftree = NULL;
proto_tree *newftree = NULL;
- guint32 string_length;
guint32 status;
const char *opname=NULL;
guint32 last_fh_hash=0;
case NFS4_OP_READ:
offset = dissect_rpc_uint32(tvb, newftree, hf_nfs_eof, offset);
- string_length = tvb_get_ntohl(tvb,offset+0);
dissect_rpc_uint32(tvb, newftree, hf_read_data_length, offset); /* don't change offset */
offset = dissect_nfsdata(tvb, offset, newftree, hf_nfs_data);
break;
guint8 *bytes;
gboolean handled, dissectorCalled;
guint8 firstByte, found;
- gint len, reported_len;
+ gint reported_len;
dissector_handle_t epl_handle;
guint8 packageCounter;
handled = FALSE;
return TRUE;
}
- len = tvb_length_remaining(message_tvb, 0);
reported_len = tvb_reported_length_remaining(message_tvb, 0);
length = tvb_length(message_tvb);
bytes = (guint8 *) ep_tvb_memdup(message_tvb, 0, length);
guint8 *bytes;
gboolean handled, dissectorCalled, udpDissectorCalled;
guint8 firstByte, found;
- gint len, reported_len;
+ gint reported_len;
dissector_handle_t siii_handle;
guint8 packageCounter = 0;
gboolean internSIIIHandling;
return TRUE;
}
- len = tvb_length_remaining(message_tvb, 0);
reported_len = tvb_reported_length_remaining(message_tvb, 0);
length = tvb_length(message_tvb);
bytes = (guint8 *) ep_tvb_memdup(message_tvb, 0, length);
/* Only engage, if we are not called strictly for the overview */
if ( tree )
{
- /* When Modbus/TCP get's dissected, openSAFETY would be sorted as a child protocol. Although,
- * this behaviour is technically correct, it differs from other implemented IEM protocol handlers.
- * Therefore, the openSAFETY frame get's put one up, if the parent is not NULL */
+ /* When Modbus/TCP get's dissected, openSAFETY would be sorted as a child protocol. Although,
+ * this behaviour is technically correct, it differs from other implemented IEM protocol handlers.
+ * Therefore, the openSAFETY frame get's put one up, if the parent is not NULL */
if ( dissect_opensafety_frame(next_tvb, pinfo, ( tree->parent != NULL ? tree->parent : tree ), FALSE, found ) == TRUE )
packageCounter++;
}
guint8 *bytes;
gboolean handled, dissectorCalled;
guint8 found;
- gint len, reported_len;
+ gint reported_len;
dissector_handle_t pn_io_handle;
guint8 packageCounter;
handled = FALSE;
pn_io_handle = find_dissector("pn_io");
if ( pn_io_handle == NULL )
- pn_io_handle = find_dissector("data");
+ pn_io_handle = find_dissector("data");
- len = tvb_length_remaining(message_tvb, 0);
reported_len = tvb_reported_length_remaining(message_tvb, 0);
length = tvb_length(message_tvb);
bytes = (guint8 *) ep_tvb_memdup(message_tvb, 0, length);
if ( calledOnce == FALSE )
{
calledOnce = TRUE;
- result = dissect_opensafety_pn_io(message_tvb, pinfo, tree );
+ result = dissect_opensafety_pn_io(message_tvb, pinfo, tree );
calledOnce = FALSE;
return result;
}
if ( !opensafety_inited )
{
- /* EPL & SercosIII dissector registration */
+ /* EPL & SercosIII dissector registration */
heur_dissector_add("epl", dissect_heur_opensafety_epl, proto_opensafety);
heur_dissector_add("sercosiii", dissect_heur_opensafety_siii, proto_opensafety);
* the ethernet subdissector list. No PNIO specific data will be dissected
* and a warning will be displayed, recognizing the missing dissector plugin.
*/
- g_warning ( "openSAFETY - Profinet IO heuristic dissector cannot be registered, openSAFETY/PNIO native dissection." );
+ g_warning ( "openSAFETY - Profinet IO heuristic dissector cannot be registered, openSAFETY/PNIO native dissection." );
dissector_add_uint("ethertype", ETHERTYPE_PROFINET, find_dissector("opensafety_pnio"));
}
}