ofproto: Report multipart buffer overflow.
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Thu, 24 Oct 2013 03:07:44 +0000 (12:07 +0900)
committerBen Pfaff <blp@nicira.com>
Fri, 25 Oct 2013 03:58:48 +0000 (20:58 -0700)
commitff3c2c63af78b71d77eb119bd6398783a28b6f4c
tree55cd75a8f6e24da614ce1df02976631d50ab3afa
parent76ec08e01b4075b2e6d76ecbc5872513dd5b873f
ofproto: Report multipart buffer overflow.

Because our size of the multipart request buffer is effectively 0,
always report multipart buffer overflow error for multipart requests
with "more" flag set.

While this might be simpler if done in ofp-msgs.c, i put this in
ofproto.c because it seems like a better place to implement the
buffering logic if/when desirable.

An option question: what to do for the following messages with the
same xid?  especially for the last message which doesn't have the
"more" flag set?  it would be neater to detect and drop them.

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
OPENFLOW-1.1+
ofproto/ofproto.c