/* read a type flag from tvb and add it to tree  */
static guint8 read_type(unsigned int *offset, tvbuff_t *tvb, proto_tree *etch_tree)
/* read a type flag from tvb and add it to tree  */
static guint8 read_type(unsigned int *offset, tvbuff_t *tvb, proto_tree *etch_tree)
{
  guint32      type_code;
  type_code = tvb_get_guint8(tvb, *offset);
  proto_tree_add_item(etch_tree, hf_etch_typecode, tvb, *offset, 1, ENC_BIG_ENDIAN);
  (*offset)++;
  return type_code;
}