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

int rtnl_sfq_set_limit ( struct rtnl_qdisc *  qdisc,
int  limit 

Set limit of SFQ qdisc.

  • qdisc SFQ qdisc to be modified.
  • limit New limit in number of packets.
    0 on success or a negative error code.

Definition at line 190 of file sfq.c.

      struct rtnl_sfq *sfq;

      sfq = sfq_alloc(qdisc);
      if (!sfq)
            return nl_errno(ENOMEM);

      sfq->qs_limit = limit;
      sfq->qs_mask |= SCH_SFQ_ATTR_LIMIT;

      return 0;

Generated by  Doxygen 1.6.0   Back to index