ofp-actions: Return action size
authorSimon Horman <horms@verge.net.au>
Tue, 7 Aug 2012 21:49:41 +0000 (06:49 +0900)
committerBen Pfaff <blp@nicira.com>
Wed, 8 Aug 2012 23:27:09 +0000 (16:27 -0700)
commita07c15bc39154c2a31b9c14d54db1b10a8f77312
tree56d3c3c74f03890ea69d0699ca1321f16a2a61fe
parent653679335044758eb8166d04d775ad4f70b43bf2
ofp-actions: Return action size

Modify ofpacts_put_openflow11_actions() to return the length of actions
appended. This will be used when encoding Packet Out messages for
Open Flow 1.1 and 1.2. The motivation for this is to avoid open coding
the size calculation which may end up being needed elsewhere too.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-actions.c
lib/ofp-actions.h