/* counts length of the variable length encoded field */
static int count_vle_bytes(tvbuff_t *tvb, int offset)
/* counts length of the variable length encoded field */
static int count_vle_bytes(tvbuff_t *tvb, int offset)
{
    int byte_count = 1;
    if(tvb_get_guint8(tvb, offset) & 0x80)
        byte_count = 2;
    if(tvb_get_guint8(tvb, offset+1) & 0x80)
        byte_count = 4;
    return byte_count;
}