Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

int rtnl_qdisc_dsmark_get_indices ( struct rtnl_qdisc *  qdisc  ) 

Get indices of DSMARK qdisc.

  • qdisc DSMARK qdisc.
    Returns:
    Indices or a negative error code.

Definition at line 337 of file dsmark.c.

References dsmark_qdisc().

{
      struct rtnl_dsmark_qdisc *dsmark;

      dsmark = dsmark_qdisc(qdisc);
      if (dsmark && dsmark->qdm_mask & SCH_DSMARK_ATTR_INDICES)
            return dsmark->qdm_indices;
      else
            return -NLE_NOATTR;
}


Generated by  Doxygen 1.6.0   Back to index