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