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_qdisc_dsmark_get_indices(struct rtnl_qdisc* qdisc)
{
    struct rtnl_dsmark_qdisc* dsmark;

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

    if (dsmark->qdm_mask & SCH_DSMARK_ATTR_INDICES)
        return dsmark->qdm_indices;
    else
        return -NLE_NOATTR;
}
/**
 * Get indices of DSMARK qdisc.
 * @arg qdisc		DSMARK qdisc.
 * @return Indices or a negative error code.
 */
Get indices of DSMARK qdisc.
@arg qdisc           DSMARK qdisc.
@return Indices or a negative error code.
Get indices of DSMARK qdisc . @arg qdisc DSMARK qdisc . @return Indices or a negative error code .
int rtnl_qdisc_dsmark_get_indices(struct rtnl_qdisc* qdisc)
{
    struct rtnl_dsmark_qdisc* dsmark;
    if (!(dsmark = rtnl_tc_data(TC_CAST(qdisc))))
        return -NLE_NOMEM;
    if (dsmark->qdm_mask & SCH_DSMARK_ATTR_INDICES)
        return dsmark->qdm_indices;
    else
        return -NLE_NOATTR;
}
int rtnl_qdisc_dsmark_get_indices ( struct rtnl_qdisc * qdisc ) { struct rtnl_dsmark_qdisc * dsmark ; if ( ! ( dsmark = rtnl_tc_data ( TC_CAST ( qdisc ) ) ) ) return - NLE_NOMEM ; if ( dsmark -> qdm_mask & SCH_DSMARK_ATTR_INDICES ) return dsmark -> qdm_indices ; else return - NLE_NOATTR ; }
Get indices of DSMARK qdisc.
Get indices of DSMARK qdisc .