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

int rtnl_netem_get_delay_distribution_size ( struct rtnl_qdisc *  qdisc  ) 

Get the size of the distribution table.

  • qdisc Netem qdisc.
    Returns:
    Distribution table size or a negative error code.

Definition at line 820 of file netem.c.

References netem_qdisc().

{
      struct rtnl_netem *netem;

      netem = netem_qdisc(qdisc);
      if (netem && (netem->qnm_mask & SCH_NETEM_ATTR_DIST))
            return netem->qnm_dist.dist_size;
      else
            return -NLE_NOATTR;
}


Generated by  Doxygen 1.6.0   Back to index