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

int rtnl_qdisc_dsmark_get_default_index ( struct rtnl_qdisc *  qdisc  ) 

Get default index of DSMARK qdisc.

  • qdisc DSMARK qdisc.
    Returns:
    Default index or a negative error code.

Definition at line 374 of file dsmark.c.

References dsmark_qdisc().

{
      struct rtnl_dsmark_qdisc *dsmark;

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


Generated by  Doxygen 1.6.0   Back to index