]> git.proxmox.com Git - mirror_ovs.git/commit - lib/ofp-util.c
vconn: Update length of bundled messages.
authorJarno Rajahalme <jarno@ovn.org>
Fri, 29 Jul 2016 23:52:03 +0000 (16:52 -0700)
committerJarno Rajahalme <jarno@ovn.org>
Fri, 29 Jul 2016 23:52:03 +0000 (16:52 -0700)
commitbcf899f7125d9152f509af2072e05a3aafacbd91
tree4604405c802342271153aaa1ae56c6b8fccd619e
parent5d08a275cd617d125977fd54cd583183e8718b28
vconn: Update length of bundled messages.

Variable length messages need their length updated before they can be
added to the bundle.

Message length updating after encoding is sometimes done by the
encoding function, but always latest when the message is sent out.  As
an OpenFlow message is added to a bundle add message, it will not be
sent by itself, and we need to update the length explicitly instead.

Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
lib/ofp-util.c
lib/vconn.c