/* dissect_reliable_message_number is a utility function which calculates the RMN if and only if the reliable flag in the message block is set to 1. */
static int dissect_reliable_message_number(tvbuff_t *buffer, int offset, proto_tree *tree)
/* dissect_reliable_message_number is a utility function which calculates the RMN if and only if the reliable flag in the message block is set to 1. */
static int dissect_reliable_message_number(tvbuff_t *buffer, int offset, proto_tree *tree)
{
    int byte_count = 1;
    if(tvb_get_guint8(buffer, offset) & 0x80)
        byte_count = 2;
    proto_tree_add_item(tree, hf_knet_msg_reliable_message_number, buffer, offset, byte_count, ENC_LITTLE_ENDIAN);
    return byte_count;
}