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

int rtnl_netem_get_delay ( struct rtnl_qdisc *  qdisc  ) 

Get packet delay of netem qdisc.

  • qdisc Netem qdisc.
    Packet delay in micro seconds or a negative error code.

Definition at line 733 of file netem.c.

References netem_qdisc(), and nl_ticks2us().

      struct rtnl_netem *netem;

      netem = netem_qdisc(qdisc);
      if (netem && (netem->qnm_mask & SCH_NETEM_ATTR_LATENCY))
            return nl_ticks2us(netem->qnm_latency);
            return -NLE_NOATTR;

Generated by  Doxygen 1.6.0   Back to index