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

int rtnl_netem_get_delay_distribution ( struct rtnl_qdisc *  qdisc,
int16_t **  dist_ptr 
)

Get a pointer to the distribution table.

  • qdisc Netem qdisc.
  • dist_ptr The pointer to set.
    Returns:
    Negative error code on failure or 0 on success.

Definition at line 837 of file netem.c.

References netem_qdisc().

{
      struct rtnl_netem *netem;

      netem = netem_qdisc(qdisc);
      if (netem && (netem->qnm_mask & SCH_NETEM_ATTR_DIST)) {
            *dist_ptr = netem->qnm_dist.dist_data;
            return 0;
      }
      else
            return -NLE_NOATTR;
}


Generated by  Doxygen 1.6.0   Back to index