openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libnl/1_3.4.0-r0/libnl-3.4.0/lib/route/qdisc/dsmark.c
int rtnl_class_dsmark_set_value(struct rtnl_class* class, uint8_t value)
{
    struct rtnl_dsmark_class* dsmark;

    if (!(dsmark = rtnl_tc_data(TC_CAST(class))))
        return -NLE_NOMEM;

    dsmark->cdm_value = value;
    dsmark->cdm_mask |= SCH_DSMARK_ATTR_VALUE;

    return 0;
}
/**
 * Set value of DSMARK class.
 * @arg class		DSMARK class to be modified.
 * @arg value		New value.
 * @return 0 on success or a negative errror code.
 */
Set value of DSMARK class.
@arg class           DSMARK class to be modified.
@arg value           New value.
@return 0 on success or a negative errror code.
Set value of DSMARK class . @arg class DSMARK class to be modified . @arg value New value . @return 0 on success or a negative errror code .
int rtnl_class_dsmark_set_value(struct rtnl_class* class, uint8_t value)
{
    struct rtnl_dsmark_class* dsmark;
    if (!(dsmark = rtnl_tc_data(TC_CAST(class))))
        return -NLE_NOMEM;
    dsmark->cdm_value = value;
    dsmark->cdm_mask |= SCH_DSMARK_ATTR_VALUE;
    return 0;
}
int rtnl_class_dsmark_set_value ( struct rtnl_class * class , uint8_t value ) { struct rtnl_dsmark_class * dsmark ; if ( ! ( dsmark = rtnl_tc_data ( TC_CAST ( class ) ) ) ) return - NLE_NOMEM ; dsmark -> cdm_value = value ; dsmark -> cdm_mask |= SCH_DSMARK_ATTR_VALUE ; return 0 ; }
Set value of DSMARK class.
Set value of DSMARK class .