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_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_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;
}
Ejemplo n.º 4
0
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_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_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_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;
}
Ejemplo n.º 8
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_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_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_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_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_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;
}
Ejemplo n.º 14
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;
}
Ejemplo n.º 15
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;
}
Ejemplo n.º 17
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;
}
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;
}
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;
}
Ejemplo n.º 21
0
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_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;
}