dsmark.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * netlink/route/sch/dsmark.h DSMARK
  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_DSMARK_H_
  12. #define NETLINK_DSMARK_H_
  13. #include <netlink/netlink.h>
  14. #include <netlink/route/qdisc.h>
  15. #include <netlink/route/class.h>
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. extern int rtnl_class_dsmark_set_bitmask(struct rtnl_class *, uint8_t);
  20. extern int rtnl_class_dsmark_get_bitmask(struct rtnl_class *);
  21. extern int rtnl_class_dsmark_set_value(struct rtnl_class *, uint8_t);
  22. extern int rtnl_class_dsmark_get_value(struct rtnl_class *);
  23. extern int rtnl_qdisc_dsmark_set_indices(struct rtnl_qdisc *, uint16_t);
  24. extern int rtnl_qdisc_dsmark_get_indices(struct rtnl_qdisc *);
  25. extern int rtnl_qdisc_dsmark_set_default_index(struct rtnl_qdisc *,
  26. uint16_t);
  27. extern int rtnl_qdisc_dsmark_get_default_index(struct rtnl_qdisc *);
  28. extern int rtnl_qdisc_dsmark_set_set_tc_index(struct rtnl_qdisc *, int);
  29. extern int rtnl_qdisc_dsmark_get_set_tc_index(struct rtnl_qdisc *);
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33. #endif