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

int rtnl_netem_set_delay_correlation ( struct rtnl_qdisc *  qdisc,
int  prob 
)

Set packet delay correlation probability of netem qdisc.

  • qdisc Netem qdisc to be modified.
  • prob New packet delay correlation probability.

Definition at line 785 of file netem.c.

{
      struct rtnl_netem *netem;

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

      netem->qnm_corr.nmc_delay = prob;
      netem->qnm_mask |= SCH_NETEM_ATTR_DELAY_CORR;

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index