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

int rtnl_sfq_set_perturb ( struct rtnl_qdisc *  qdisc,
int  perturb 

Set perturbation interval of SFQ qdisc.

  • qdisc SFQ qdisc to be modified.
  • perturb New perturbation interval in seconds.
    A value of 0 disables perturbation altogether.
    0 on success or a negative error code.

Definition at line 220 of file sfq.c.

      struct rtnl_sfq *sfq;

      sfq = sfq_alloc(qdisc);
      if (!sfq)
            return -NLE_NOMEM;

      sfq->qs_perturb = perturb;
      sfq->qs_mask |= SCH_SFQ_ATTR_PERTURB;

      return 0;

Generated by  Doxygen 1.6.0   Back to index