/* Decodes a Long-integer from the protocol data Long-integer = Short-length Multi-octet-integer Short-length = <Any octet 0-30> Multi-octet-integer = 1*30OCTET */
static guint get_long_integer(tvbuff_t *tvb, guint offset, guint *byte_count)
/* Decodes a Long-integer from the protocol data Long-integer = Short-length Multi-octet-integer Short-length = <Any octet 0-30> Multi-octet-integer = 1*30OCTET */
static guint get_long_integer(tvbuff_t *tvb, guint offset, guint *byte_count)
{
    guint        val;
    *byte_count = tvb_get_guint8(tvb, offset++);
    switch (*byte_count) {
        case 1:
            val = tvb_get_guint8(tvb, offset);
            break;
        case 2:
            val = tvb_get_ntohs(tvb, offset);
            break;
        case 3:
            val = tvb_get_ntoh24(tvb, offset);
            break;
        case 4:
            val = tvb_get_ntohl(tvb, offset);
            break;
        default:
            val = 0;
            break;
    }
    (*byte_count)++;
    return val;
}