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

int rtnl_netem_get_limit ( struct rtnl_qdisc *  qdisc  ) 

Get limit of netem qdisc.

  • qdisc Netem qdisc.
    Returns:
    Limit in bytes or a negative error code.

Definition at line 184 of file netem.c.

References netem_qdisc().

{
      struct rtnl_netem *netem;

      netem = netem_qdisc(qdisc);
      if (netem && (netem->qnm_mask & SCH_NETEM_ATTR_LIMIT))
            return netem->qnm_limit;
      else
            return nl_errno(ENOENT);
}


Generated by  Doxygen 1.6.0   Back to index