Logo Search packages:      
Sourcecode: libnl 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.
    Returns:
    0 on success or a negative error code.

Definition at line 517 of file netem.c.

References nl_us2ticks().

{
      struct rtnl_netem *netem;

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

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

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index