lib/ofp-prop.c
/* Attempts to parse 'property' as a property containing a UUID.  If
 * successful, stores the value into '*uuid' and returns 0; otherwise returns
 * an OpenFlow error. */
Attempts to parse 'property' as a property containing a UUID.  If
successful, stores the value into '*uuid' and returns 0; otherwise returns
an OpenFlow error.
Attempts to parse ' property ' as a property containing a UUID . If successful stores the value into ' * uuid ' and returns 0 ; otherwise returns an OpenFlow error .
enum ofperr
ofpprop_parse_uuid(const struct ofpbuf *property, struct uuid *uuid)
{
    struct uuid *p = property->msg;
    if (ofpbuf_msgsize(property) != sizeof *p) {
        return OFPERR_OFPBPC_BAD_LEN;
    }
    *uuid = *p;
    return 0;
}
enum ofperr ofpprop_parse_uuid ( const struct ofpbuf * property , struct uuid * uuid ) { struct uuid * p = property -> msg ; if ( ofpbuf_msgsize ( property ) != sizeof * p ) { return OFPERR_OFPBPC_BAD_LEN ; } * uuid = * p ; return 0 ; }
Attempts to parse 'property' as a property containing a UUID.
Attempts to parse ' property ' as a property containing a UUID .