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

int rtnl_qdisc_dsmark_get_set_tc_index ( struct rtnl_qdisc *  qdisc  ) 

Get set-tc-index flag of DSMARK qdisc.

  • qdisc DSMARK qdisc to be modified.
    Returns:
    1 or 0 to indicate wehther the flag is enabled or a negative error code.

Definition at line 411 of file dsmark.c.

References dsmark_qdisc().

{
      struct rtnl_dsmark_qdisc *dsmark;

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


Generated by  Doxygen 1.6.0   Back to index