int
of_list_bsn_interface_first(of_list_bsn_interface_t *list, of_object_t *obj)
{
    int rv;

    of_bsn_interface_init(obj, list->version, -1, 1);

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



    return rv;
}
Пример #2
0
int
of_list_uint32_first(of_list_uint32_t *list, of_object_t *obj)
{
    int rv;

    of_uint32_init(obj, list->version, -1, 1);

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



    return rv;
}
int
of_list_bsn_debug_counter_desc_stats_entry_first(of_list_bsn_debug_counter_desc_stats_entry_t *list, of_object_t *obj)
{
    int rv;

    of_bsn_debug_counter_desc_stats_entry_init(obj, list->version, -1, 1);

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



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

    of_bsn_gentable_entry_stats_entry_init(obj, list->version, -1, 1);

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


    of_u16_len_wire_length_get(obj, &obj->length);

    return rv;
}
int
of_list_bsn_lacp_stats_entry_first(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;

    of_bsn_lacp_stats_entry_init(_obj, list->version, -1, 1);

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



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

    of_meter_stats_init(obj, list->version, -1, 1);

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


    of_meter_stats_wire_length_get(obj, &obj->length);

    return rv;
}
int
of_list_group_desc_stats_entry_first(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;

    of_group_desc_stats_entry_init(_obj, list->version, -1, 1);

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


    of_u16_len_wire_length_get(obj, &obj->length);

    return rv;
}
int
of_list_instruction_first(of_list_instruction_t *list, of_object_t *obj)
{
    int rv;

    of_instruction_init(obj, list->version, -1, 1);

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

    of_instruction_wire_object_id_get(obj, &obj->object_id);

    of_tlv16_wire_length_get(obj, &obj->length);

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

    of_queue_stats_prop_init(obj, list->version, -1, 1);

    if ((rv = of_list_first(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_first(of_list_hello_elem_t *list, of_hello_elem_t *_obj)
{
    int rv;
    of_object_t *obj = (of_object_t *)_obj;

    of_hello_elem_init(_obj, list->version, -1, 1);

    if ((rv = of_list_first(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_first(of_list_action_id_t *list,
    of_action_id_t *obj)
{
    int rv;

    of_action_id_header_init((of_action_id_header_t *)obj,
            list->version, 0, 1);
    if ((rv = of_list_first((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    of_object_wire_init((of_object_t *) obj, OF_ACTION_ID,
                        list->length);
    if (obj->header.length == 0) {
        return OF_ERROR_PARSE;
    }

    return rv;
}
Пример #12
0
int
of_list_meter_stats_first(of_list_meter_stats_t *list,
    of_meter_stats_t *obj)
{
    int rv;

    of_meter_stats_init(obj,
            list->version, 0, 1);
    if ((rv = of_list_first((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    of_object_wire_init((of_object_t *) obj, OF_METER_STATS,
                        list->length);
    if (obj->length == 0) {
        return OF_ERROR_PARSE;
    }

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

    of_bsn_vlan_counter_stats_entry_init(obj,
            list->version, 0, 1);
    if ((rv = of_list_first((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    of_object_wire_init((of_object_t *) obj, OF_BSN_VLAN_COUNTER_STATS_ENTRY,
                        list->length);
    if (obj->length == 0) {
        return OF_ERROR_PARSE;
    }

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

    of_bsn_gentable_entry_desc_stats_entry_init(obj,
            list->version, 0, 1);
    if ((rv = of_list_first((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    of_object_wire_init((of_object_t *) obj, OF_BSN_GENTABLE_ENTRY_DESC_STATS_ENTRY,
                        list->length);
    if (obj->length == 0) {
        return OF_ERROR_PARSE;
    }

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

    of_bsn_interface_init(obj,
            list->version, 0, 1);
    if ((rv = of_list_first((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    of_object_wire_init((of_object_t *) obj, OF_BSN_INTERFACE,
                        list->length);
    if (obj->length == 0) {
        return OF_ERROR_PARSE;
    }

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

    of_bsn_tlv_header_init((of_bsn_tlv_header_t *)obj,
            list->version, 0, 1);
    if ((rv = of_list_first((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    of_object_wire_init((of_object_t *) obj, OF_BSN_TLV,
                        list->length);
    if (obj->header.length == 0) {
        return OF_ERROR_PARSE;
    }

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

    of_bucket_counter_init(obj,
            list->version, 0, 1);
    if ((rv = of_list_first((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    of_object_wire_init((of_object_t *) obj, OF_BUCKET_COUNTER,
                        list->length);
    if (obj->length == 0) {
        return OF_ERROR_PARSE;
    }

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

    of_bsn_flow_checksum_bucket_stats_entry_init(obj,
            list->version, 0, 1);
    if ((rv = of_list_first((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    of_object_wire_init((of_object_t *) obj, OF_BSN_FLOW_CHECKSUM_BUCKET_STATS_ENTRY,
                        list->length);
    if (obj->length == 0) {
        return OF_ERROR_PARSE;
    }

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

    of_queue_stats_entry_init(obj,
            list->version, 0, 1);
    if ((rv = of_list_first((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    of_object_wire_init((of_object_t *) obj, OF_QUEUE_STATS_ENTRY,
                        list->length);
    if (obj->length == 0) {
        return OF_ERROR_PARSE;
    }

    return rv;
}
Пример #20
0
int
of_list_meter_band_first(of_list_meter_band_t *list,
    of_meter_band_t *obj)
{
    int rv;

    of_meter_band_header_init((of_meter_band_header_t *)obj,
            list->version, 0, 1);
    if ((rv = of_list_first((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    of_object_wire_init((of_object_t *) obj, OF_METER_BAND,
                        list->length);
    if (obj->header.length == 0) {
        return OF_ERROR_PARSE;
    }

    return rv;
}
Пример #21
0
int
of_list_uint32_first(of_list_uint32_t *list,
    of_uint32_t *obj)
{
    int rv;

    of_uint32_init(obj,
            list->version, 0, 1);
    if ((rv = of_list_first((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    of_object_wire_init((of_object_t *) obj, OF_UINT32,
                        list->length);
    if (obj->length == 0) {
        return OF_ERROR_PARSE;
    }

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

    of_table_feature_prop_header_init((of_table_feature_prop_header_t *)obj,
            list->version, 0, 1);
    if ((rv = of_list_first((of_object_t *)list, (of_object_t *)obj)) < 0) {
        return rv;
    }

    of_object_wire_init((of_object_t *) obj, OF_TABLE_FEATURE_PROP,
                        list->length);
    if (obj->header.length == 0) {
        return OF_ERROR_PARSE;
    }

    return rv;
}