lib/ofp-prop.c
/* Finishes serializing a property that was begun with ofpprop_start(), by
 * padding 'msg' to a multiple of 8 bytes and updating the property's length.
 * 'start_ofs' should be the offset of the beginning of the property, as
 * returned by ofpprop_start(). */
Finishes serializing a property that was begun with ofpprop_start(), by
padding 'msg' to a multiple of 8 bytes and updating the property's length.
'start_ofs' should be the offset of the beginning of the property, as
returned by ofpprop_start().
Finishes serializing a property that was begun with ofpprop_start () by padding ' msg ' to a multiple of 8 bytes and updating the property ' s length . ' start_ofs ' should be the offset of the beginning of the property as returned by ofpprop_start () .
void
ofpprop_end(struct ofpbuf *msg, size_t start_ofs)
{
    struct ofp_prop_header *oph;
    oph = ofpbuf_at_assert(msg, start_ofs, sizeof *oph);
    oph->len = htons(msg->size - start_ofs);
    ofpbuf_padto(msg, ROUND_UP(msg->size, 8));
}
void ofpprop_end ( struct ofpbuf * msg , size_t start_ofs ) { struct ofp_prop_header * oph ; oph = ofpbuf_at_assert ( msg , start_ofs , sizeof * oph ) ; oph -> len = htons ( msg -> size - start_ofs ) ; ofpbuf_padto ( msg , ROUND_UP ( msg -> size , 8 ) ) ; }
Finishes serializing a property that was begun with ofpprop_start(), by
 padding 'msg' to a multiple of 8 bytes and updating the property's length.
Finishes serializing a property that was begun with ofpprop_start () by padding ' msg ' to a multiple of 8 bytes and updating the property ' s length .