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

int rtnl_qdisc_dsmark_set_default_index ( struct rtnl_qdisc *  qdisc,
uint16_t  default_index 
)

Set default index of DSMARK qdisc.

  • qdisc DSMARK qdisc to be modified.
  • default_index New default index.
    Returns:
    0 on success or a negative error code.

Definition at line 354 of file dsmark.c.

References dsmark_qdisc().

{
      struct rtnl_dsmark_qdisc *dsmark;

      dsmark = dsmark_qdisc(qdisc);
      if (!dsmark)
            return -NLE_NOMEM;

      dsmark->qdm_default_index = default_index;
      dsmark->qdm_mask |= SCH_DSMARK_ATTR_DEFAULT_INDEX;

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index