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

int rtnl_netem_set_limit ( struct rtnl_qdisc *  qdisc,
int  limit 
)

Set limit of netem qdisc.

  • qdisc Netem qdisc to be modified.
  • limit New limit in bytes.
    Returns:
    0 on success or a negative error code.

Definition at line 165 of file netem.c.

{
      struct rtnl_netem *netem;

      netem = netem_alloc(qdisc);
      if (!netem)
            return nl_errno(ENOMEM);
      
      netem->qnm_limit = limit;
      netem->qnm_mask |= SCH_NETEM_ATTR_LIMIT;

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index