tbf.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * netlink/route/sch/tbf.h TBF Qdisc
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation version 2.1
  7. * of the License.
  8. *
  9. * Copyright (c) 2003-2011 Thomas Graf <tgraf@suug.ch>
  10. */
  11. #ifndef NETLINK_TBF_H_
  12. #define NETLINK_TBF_H_
  13. #include <netlink/netlink.h>
  14. #include <netlink/route/tc.h>
  15. #include <netlink/route/qdisc.h>
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. extern void rtnl_qdisc_tbf_set_limit(struct rtnl_qdisc *, int);
  20. extern int rtnl_qdisc_tbf_set_limit_by_latency(struct rtnl_qdisc *, int);
  21. extern int rtnl_qdisc_tbf_get_limit(struct rtnl_qdisc *);
  22. extern void rtnl_qdisc_tbf_set_rate(struct rtnl_qdisc *, int, int, int);
  23. extern int rtnl_qdisc_tbf_get_rate(struct rtnl_qdisc *);
  24. extern int rtnl_qdisc_tbf_get_rate_bucket(struct rtnl_qdisc *);
  25. extern int rtnl_qdisc_tbf_get_rate_cell(struct rtnl_qdisc *);
  26. extern int rtnl_qdisc_tbf_set_peakrate(struct rtnl_qdisc *, int, int, int);
  27. extern int rtnl_qdisc_tbf_get_peakrate(struct rtnl_qdisc *);
  28. extern int rtnl_qdisc_tbf_get_peakrate_bucket(struct rtnl_qdisc *);
  29. extern int rtnl_qdisc_tbf_get_peakrate_cell(struct rtnl_qdisc *);
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33. #endif