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

int rtnl_qdisc_tbf_get_rate_bucket ( struct rtnl_qdisc *  qdisc  ) 

Get rate bucket size of TBF qdisc.

  • qdisc TBF qdisc.
    Returns:
    Size of rate bucket or a negative error code.

Definition at line 404 of file tbf.c.

References tbf_qdisc().

{
      struct rtnl_tbf *tbf;

      tbf = tbf_qdisc(qdisc);
      if (tbf && (tbf->qt_mask & TBF_ATTR_RATE))
            return tbf->qt_rate_bucket;
      else
            return -1;
}


Generated by  Doxygen 1.6.0   Back to index