lib/ofp-prop.c
/* Attempts to parse 'property' as a property that contains nested properties.
 * If successful, stores the nested data into '*nested' and returns 0;
 * otherwise returns an OpenFlow error.
 *
 * The only thing special about nested properties is that the property header
 * is followed by 4 bytes of padding, so that the nested properties begin at an
 * 8-byte aligned offset.  This function can be used in other situations where
 * this is the case. */
Attempts to parse 'property' as a property that contains nested properties.
If successful, stores the nested data into '*nested' and returns 0;
otherwise returns an OpenFlow error.

The only thing special about nested properties is that the property header
is followed by 4 bytes of padding, so that the nested properties begin at an
8-byte aligned offset.  This function can be used in other situations where
this is the case.
Attempts to parse ' property ' as a property that contains nested properties . If successful stores the nested data into ' * nested ' and returns 0 ; otherwise returns an OpenFlow error . The only thing special about nested properties is that the property header is followed by 4 bytes of padding so that the nested properties begin at an 8 - byte aligned offset . This function can be used in other situations where this is the case .
enum ofperr
ofpprop_parse_nested(const struct ofpbuf *property, struct ofpbuf *nested)
{
    size_t nested_offset = ROUND_UP(ofpbuf_headersize(property), 8);
    if (property->size < nested_offset) {
        return OFPERR_OFPBPC_BAD_LEN;
    }
    ofpbuf_use_const(nested, property->data, property->size);
    ofpbuf_pull(nested, nested_offset);
    return 0;
}
enum ofperr ofpprop_parse_nested ( const struct ofpbuf * property , struct ofpbuf * nested ) { size_t nested_offset = ROUND_UP ( ofpbuf_headersize ( property ) , 8 ) ; if ( property -> size < nested_offset ) { return OFPERR_OFPBPC_BAD_LEN ; } ofpbuf_use_const ( nested , property -> data , property -> size ) ; ofpbuf_pull ( nested , nested_offset ) ; return 0 ; }
Attempts to parse 'property' as a property that contains nested properties.
Attempts to parse ' property ' as a property that contains nested properties .