/* Fetches the length of an entire C12.22 message to assist in reassembly. */
static guint get_c1222_message_len(packet_info *pinfo, tvbuff_t *tvb, int offset, void *data _U_)
/* Fetches the length of an entire C12.22 message to assist in reassembly. */
static guint get_c1222_message_len(packet_info *pinfo, tvbuff_t *tvb, int offset, void *data _U_)
{
  int orig_offset;
  guint length;
  gboolean ind;
  orig_offset = offset;
  offset = dissect_ber_length(pinfo, NULL, tvb, offset+1, &length, &ind);
  return length+(offset - orig_offset);
}