CPqD / ofsoftswitch13

OpenFlow 1.3 switch.
http://cpqd.github.com/ofsoftswitch13
304 stars 192 forks source link

[pipeline_handle_stats_request_flow] can't handel mutilpart reply messages that is too long #276

Closed davidmpc closed 6 years ago

davidmpc commented 6 years ago

ofsoftswitch13 can't handle multipart reply messages that has length over 0xFFFF, for example when the flow table has more than hundreds of flow entries, the multipart flow-stats reply message is longer than 65535 and we have to divide the message into multi messages which are both shorter than 65535 as shown in the specification of OpenFlow 1.3, and the function pipeline_handle_stats_request_flow will cause error because it assign the length larger than 0xFFFF to the length filed in ofp_header which is uint16_t, I post this as a reminder that we have to implement this.