On Wed, Apr 23, 2014 at 02:03:56PM +0300, Alexandru Copot wrote: > This is only the communication part of the bundles functionality. > The actual message pre-validation and commits are not implemented. > > Signed-off-by: Alexandru Copot <alex.miha...@gmail.com>
Thanks for the new revision. I think that ofputil_decode_bundle_add() needs to check the length of the inner message: it has to be the number of bytes left in the outer message, or less. The declaration of OFPRAW_OFPT14_BUNDLE_ADD_MESSAGE in ofp-msgs.h: /* OFPT 1.4+ (34): struct ofp14_bundle_add_msg, struct ofp_header, uint8_t[]. */ OFPRAW_OFPT14_BUNDLE_ADD_MESSAGE, does not match the declaration of struct ofp14_bundle_add_msg, since both of them include the inner struct ofp_header. One of them needs to be removed. It would be nice to implement ofputil_encode_bundle_add(), for completeness. As long as committing doesn't actually work, I guess that ofp_bundle_commit() should return an error instead of success. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev