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

int rtnl_netem_get_reorder_probability ( struct rtnl_qdisc *  qdisc  ) 

Get re-ordering probability of netem qdisc.

  • qdisc Netem qdisc.
    Returns:
    Re-ordering probability or a negative error code.

Definition at line 417 of file netem.c.

References netem_qdisc().

{
      struct rtnl_netem *netem;

      netem = netem_qdisc(qdisc);
      if (netem && (netem->qnm_mask & SCH_NETEM_ATTR_RO_PROB))
            return netem->qnm_ro.nmro_probability;
      else
            return -NLE_NOATTR;
}


Generated by  Doxygen 1.6.0   Back to index