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_get_value(struct rtnl_class* class)
{
    struct rtnl_dsmark_class* dsmark;

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

    if (dsmark->cdm_mask & SCH_DSMARK_ATTR_VALUE)
        return dsmark->cdm_value;
    else
        return -NLE_NOATTR;
}
/**
 * Get value of DSMARK class.
 * @arg class		DSMARK class.
 * @return Value or a negative error code.
 */
Get value of DSMARK class.
@arg class           DSMARK class.
@return Value or a negative error code.
Get value of DSMARK class . @arg class DSMARK class . @return Value or a negative error code .
int rtnl_class_dsmark_get_value(struct rtnl_class* class)
{
    struct rtnl_dsmark_class* dsmark;
    if (!(dsmark = rtnl_tc_data(TC_CAST(class))))
        return -NLE_NOMEM;
    if (dsmark->cdm_mask & SCH_DSMARK_ATTR_VALUE)
        return dsmark->cdm_value;
    else
        return -NLE_NOATTR;
}
int rtnl_class_dsmark_get_value ( struct rtnl_class * class ) { struct rtnl_dsmark_class * dsmark ; if ( ! ( dsmark = rtnl_tc_data ( TC_CAST ( class ) ) ) ) return - NLE_NOMEM ; if ( dsmark -> cdm_mask & SCH_DSMARK_ATTR_VALUE ) return dsmark -> cdm_value ; else return - NLE_NOATTR ; }
Get value of DSMARK class.
Get value of DSMARK class .