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

int rtnl_netem_set_jitter ( struct rtnl_qdisc *  qdisc,
int  jitter 

Set packet delay jitter of netem qdisc.

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

Definition at line 750 of file netem.c.

References nl_us2ticks().

      struct rtnl_netem *netem;

      netem = netem_alloc(qdisc);
      if (!netem)
            return -NLE_NOMEM;

      netem->qnm_jitter = nl_us2ticks(jitter);
      netem->qnm_mask |= SCH_NETEM_ATTR_JITTER;

      return 0;

Generated by  Doxygen 1.6.0   Back to index