int
of_list_bsn_debug_counter_desc_stats_entry_next(of_list_bsn_debug_counter_desc_stats_entry_t *list, of_object_t *obj)
{
    int rv;

    if ((rv = of_list_next(list, obj)) < 0) {
        return rv;
    }



    return rv;
}
int
of_list_bsn_interface_next(of_list_bsn_interface_t *list, of_object_t *obj)
{
    int rv;

    if ((rv = of_list_next(list, obj)) < 0) {
        return rv;
    }



    return rv;
}
int
of_list_uint32_next(of_list_uint32_t *list, of_object_t *obj)
{
    int rv;

    if ((rv = of_list_next(list, obj)) < 0) {
        return rv;
    }



    return rv;
}
int
of_list_bsn_gentable_entry_stats_entry_next(of_list_bsn_gentable_entry_stats_entry_t *list, of_object_t *obj)
{
    int rv;

    if ((rv = of_list_next(list, obj)) < 0) {
        return rv;
    }


    of_u16_len_wire_length_get(obj, &obj->length);

    return rv;
}
int
of_list_bsn_lacp_stats_entry_next(of_list_bsn_lacp_stats_entry_t *list, of_bsn_lacp_stats_entry_t *_obj)
{
    int rv;
    of_object_t *obj = (of_object_t *)_obj;

    if ((rv = of_list_next(list, obj)) < 0) {
        return rv;
    }



    return rv;
}
int
of_list_bsn_flow_checksum_bucket_stats_entry_next(of_list_bsn_flow_checksum_bucket_stats_entry_t *list, of_bsn_flow_checksum_bucket_stats_entry_t *_obj)
{
    int rv;
    of_object_t *obj = (of_object_t *)_obj;

    if ((rv = of_list_next(list, obj)) < 0) {
        return rv;
    }



    return rv;
}
int
of_list_meter_stats_next(of_list_meter_stats_t *list, of_object_t *obj)
{
    int rv;

    if ((rv = of_list_next(list, obj)) < 0) {
        return rv;
    }


    of_meter_stats_wire_length_get(obj, &obj->length);

    return rv;
}
int
of_list_group_desc_stats_entry_next(of_list_group_desc_stats_entry_t *list, of_group_desc_stats_entry_t *_obj)
{
    int rv;
    of_object_t *obj = (of_object_t *)_obj;

    if ((rv = of_list_next(list, obj)) < 0) {
        return rv;
    }


    of_u16_len_wire_length_get(obj, &obj->length);

    return rv;
}
int
of_list_action_id_next(of_list_action_id_t *list, of_object_t *obj)
{
    int rv;

    if ((rv = of_list_next(list, obj)) < 0) {
        return rv;
    }

    of_action_id_wire_object_id_get(obj, &obj->object_id);

    of_tlv16_wire_length_get(obj, &obj->length);

    return rv;
}
int
of_list_queue_stats_prop_next(of_list_queue_stats_prop_t *list, of_object_t *obj)
{
    int rv;

    if ((rv = of_list_next(list, obj)) < 0) {
        return rv;
    }

    of_queue_stats_prop_wire_object_id_get(obj, &obj->object_id);

    of_tlv16_wire_length_get(obj, &obj->length);

    return rv;
}
int
of_list_hello_elem_next(of_list_hello_elem_t *list, of_hello_elem_t *_obj)
{
    int rv;
    of_object_t *obj = (of_object_t *)_obj;

    if ((rv = of_list_next(list, obj)) < 0) {
        return rv;
    }

    of_hello_elem_wire_object_id_get(obj, &obj->object_id);

    of_tlv16_wire_length_get(obj, &obj->length);

    return rv;
}
int
of_list_action_id_next(of_list_action_id_t *list,
    of_action_id_t *obj)
{
    int rv;

    if ((rv = of_list_next((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    rv = of_object_wire_init((of_object_t *) obj, OF_ACTION_ID,
        list->length);

    if ((rv == OF_ERROR_NONE) && (obj->header.length == 0)) {
        return OF_ERROR_PARSE;
    }

    return rv;
}
Esempio n. 13
0
int
of_list_meter_stats_next(of_list_meter_stats_t *list,
    of_meter_stats_t *obj)
{
    int rv;

    if ((rv = of_list_next((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    rv = of_object_wire_init((of_object_t *) obj, OF_METER_STATS,
        list->length);

    if ((rv == OF_ERROR_NONE) && (obj->length == 0)) {
        return OF_ERROR_PARSE;
    }

    return rv;
}
int
of_list_bsn_vlan_counter_stats_entry_next(of_list_bsn_vlan_counter_stats_entry_t *list,
    of_bsn_vlan_counter_stats_entry_t *obj)
{
    int rv;

    if ((rv = of_list_next((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    rv = of_object_wire_init((of_object_t *) obj, OF_BSN_VLAN_COUNTER_STATS_ENTRY,
        list->length);

    if ((rv == OF_ERROR_NONE) && (obj->length == 0)) {
        return OF_ERROR_PARSE;
    }

    return rv;
}
int
of_list_bsn_tlv_next(of_list_bsn_tlv_t *list,
    of_bsn_tlv_t *obj)
{
    int rv;

    if ((rv = of_list_next((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    rv = of_object_wire_init((of_object_t *) obj, OF_BSN_TLV,
        list->length);

    if ((rv == OF_ERROR_NONE) && (obj->header.length == 0)) {
        return OF_ERROR_PARSE;
    }

    return rv;
}
int
of_list_bsn_gentable_entry_desc_stats_entry_next(of_list_bsn_gentable_entry_desc_stats_entry_t *list,
    of_bsn_gentable_entry_desc_stats_entry_t *obj)
{
    int rv;

    if ((rv = of_list_next((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    rv = of_object_wire_init((of_object_t *) obj, OF_BSN_GENTABLE_ENTRY_DESC_STATS_ENTRY,
        list->length);

    if ((rv == OF_ERROR_NONE) && (obj->length == 0)) {
        return OF_ERROR_PARSE;
    }

    return rv;
}
int
of_list_bsn_flow_checksum_bucket_stats_entry_next(of_list_bsn_flow_checksum_bucket_stats_entry_t *list,
    of_bsn_flow_checksum_bucket_stats_entry_t *obj)
{
    int rv;

    if ((rv = of_list_next((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    rv = of_object_wire_init((of_object_t *) obj, OF_BSN_FLOW_CHECKSUM_BUCKET_STATS_ENTRY,
        list->length);

    if ((rv == OF_ERROR_NONE) && (obj->length == 0)) {
        return OF_ERROR_PARSE;
    }

    return rv;
}
int
of_list_bucket_counter_next(of_list_bucket_counter_t *list,
    of_bucket_counter_t *obj)
{
    int rv;

    if ((rv = of_list_next((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    rv = of_object_wire_init((of_object_t *) obj, OF_BUCKET_COUNTER,
        list->length);

    if ((rv == OF_ERROR_NONE) && (obj->length == 0)) {
        return OF_ERROR_PARSE;
    }

    return rv;
}
int
of_list_queue_stats_entry_next(of_list_queue_stats_entry_t *list,
    of_queue_stats_entry_t *obj)
{
    int rv;

    if ((rv = of_list_next((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    rv = of_object_wire_init((of_object_t *) obj, OF_QUEUE_STATS_ENTRY,
        list->length);

    if ((rv == OF_ERROR_NONE) && (obj->length == 0)) {
        return OF_ERROR_PARSE;
    }

    return rv;
}
int
of_list_table_feature_prop_next(of_list_table_feature_prop_t *list,
    of_table_feature_prop_t *obj)
{
    int rv;

    if ((rv = of_list_next((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    rv = of_object_wire_init((of_object_t *) obj, OF_TABLE_FEATURE_PROP,
        list->length);

    if ((rv == OF_ERROR_NONE) && (obj->header.length == 0)) {
        return OF_ERROR_PARSE;
    }

    return rv;
}
int
of_list_uint32_next(of_list_uint32_t *list,
    of_uint32_t *obj)
{
    int rv;

    if ((rv = of_list_next((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    rv = of_object_wire_init((of_object_t *) obj, OF_UINT32,
        list->length);

    if ((rv == OF_ERROR_NONE) && (obj->length == 0)) {
        return OF_ERROR_PARSE;
    }

    return rv;
}
int
of_list_bsn_interface_next(of_list_bsn_interface_t *list,
    of_bsn_interface_t *obj)
{
    int rv;

    if ((rv = of_list_next((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    rv = of_object_wire_init((of_object_t *) obj, OF_BSN_INTERFACE,
        list->length);

    if ((rv == OF_ERROR_NONE) && (obj->length == 0)) {
        return OF_ERROR_PARSE;
    }

    return rv;
}