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

int rtnl_netem_set_duplicate_correlation ( struct rtnl_qdisc *  qdisc,
int  prob 
)

Set packet duplication correlation probability of netem qdisc.

  • qdisc Netem qdisc to be modified.
  • prob New packet duplication correlation probability.
    Returns:
    0 on sucess or a negative error code.

Definition at line 438 of file netem.c.

{
      struct rtnl_netem *netem;

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

      netem->qnm_corr.nmc_duplicate = prob;
      netem->qnm_mask |= SCH_NETEM_ATTR_DUP_CORR;

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index