Hi,

I'm developing an OpenFlow controller which supports OpenFlow 1.5.
I want to validate my implementation by using the packet data
generated by lib.ofp-util.

But, unfortunately, some packet data of lib.ofp-util seems not be
composed in OpenFlow 1.5 structure.
It seems to be version 1.4 or earlier structure.
aggregate_stats, flow_removed, packet_out, etc

e.g.)
struct ofpbuf *
generate_aggregate_stats_reply(enum ofputil_protocol proto)
{
    struct ofputil_aggregate_stats as;
    struct ofp_header oh;

    memset(&oh, 0, sizeof(oh));
    oh.version = 0x06;
    oh.type = 18;  /* OFPT11_STATS_REQUEST */
    oh.length = htons(0x10);
    oh.xid = 0;

    memset(&as, 0, sizeof(as));
    as.packet_count = 0x123456789abcdef0;
    as.byte_count = 0x0fedcba987654321;
    as.flow_count = 0x12345678;

    return ofputil_encode_aggregate_stats_reply(&as, &oh);
}

Is there a mistake?
Or, please tell me support status of lib.ofp-util in OpenFlow 1.5.

Best Regards,
Iwase
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to