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

int rtnl_netem_set_delay ( struct rtnl_qdisc *  qdisc,
int  delay 

Set packet delay of netem qdisc.

  • qdisc Netem qdisc to be modified.
  • delay New packet delay in micro seconds.
    0 on success or a negative error code.

Definition at line 481 of file netem.c.

References nl_us2ticks().

      struct rtnl_netem *netem;

      netem = netem_alloc(qdisc);
      if (!netem)
            return nl_errno(ENOMEM);

      netem->qnm_latency = nl_us2ticks(delay);
      netem->qnm_mask |= SCH_NETEM_ATTR_LATENCY;

      return 0;

Generated by  Doxygen 1.6.0   Back to index