static gboolean in_heur = FALSE;
gboolean result;
tvbuff_t *next_tvb;
- guint esl_length = tvb_length(tvb);
+ guint esl_length = tvb_captured_length(tvb);
if ( in_heur )
return FALSE;
ref_time_frame.fd = NULL;
/* Check that there's enough data */
- if ( tvb_length(tvb) < SIZEOF_ESLHEADER )
+ if ( esl_length < SIZEOF_ESLHEADER )
return FALSE;
/* check for Esl frame, this has a unique destination MAC from Beckhoff range
guint ecLength=0;
guint subCount = 0;
- const guint datagram_length = tvb_length_remaining(tvb, offset);
+ const guint datagram_length = tvb_captured_length(tvb);
guint datagram_padding_bytes = 0;
EcParserHDR ecHdr;
heur_dtbl_entry_t *hdtbl_entry;
which is required by the protocol specification */
if(datagram_padding_bytes > 0)
{
- proto_tree_add_item(tree, hf_ecat_padding, tvb, offset, tvb_length_remaining(tvb, offset), ENC_NA);
+ proto_tree_add_item(tree, hf_ecat_padding, tvb, offset, tvb_captured_length_remaining(tvb, offset), ENC_NA);
}
}