mgmt: Cleanup handling of extended messages
authorJustin Pettit <jpettit@nicira.com>
Tue, 25 Aug 2009 19:34:45 +0000 (12:34 -0700)
committerJustin Pettit <jpettit@nicira.com>
Tue, 25 Aug 2009 22:47:02 +0000 (15:47 -0700)
commit5b4994cd75470b694628fb76eb0fb01869eaac9a
tree4579c6fb6cdf42cd08b5bf55a21c13708c9c3d94
parent4f0b85d66b3ad39477796edd29a1e763dbe43313
mgmt: Cleanup handling of extended messages

OpenFlow has a maximum messages size of 65536 bytes, but management
messages can be greater than that.  The management protocol's Extended
Data message is used to get around that limitation.  This commit cleans
up some problems with our implementation and adds some additional
sanity-checking to received messages.

Related to vNetManager Bug #1843.
include/openflow/openflow-mgmt.h
vswitchd/mgmt.c