def check_structures_size(flow_struct_defined, flow_struct_loaded,
    id_struct_defined, id_struct_loaded, tcp_flow_struct_defined,
    tcp_flow_struct_loaded, udp_flow_struct_defined, udp_flow_struct_loaded):
    """ Function used to check loaded structures sizes againt defined ones """
    errors = []
    if flow_struct_defined != flow_struct_loaded:
        errors.append('ndpi_flow_struct')
    if id_struct_defined != id_struct_loaded:
        errors.append('ndpi_id_struct')
    if tcp_flow_struct_defined != tcp_flow_struct_loaded:
        errors.append('ndpi_tcp_flow_struct')
    if udp_flow_struct_defined != udp_flow_struct_loaded:
        errors.append('ndpi_udp_flow_struct')
    return errors
