tc.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * netlink/cli/tc.h CLI Traffic Control Helpers
  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) 2010-2011 Thomas Graf <tgraf@suug.ch>
  10. */
  11. #ifndef __NETLINK_CLI_TC_H_
  12. #define __NETLINK_CLI_TC_H_
  13. #include <netlink/route/tc.h>
  14. struct rtnl_tc_ops;
  15. extern void nl_cli_tc_parse_dev(struct rtnl_tc *, struct nl_cache *, char *);
  16. extern void nl_cli_tc_parse_parent(struct rtnl_tc *, char *);
  17. extern void nl_cli_tc_parse_handle(struct rtnl_tc *, char *, int);
  18. extern void nl_cli_tc_parse_mtu(struct rtnl_tc *, char *);
  19. extern void nl_cli_tc_parse_mpu(struct rtnl_tc *, char *);
  20. extern void nl_cli_tc_parse_overhead(struct rtnl_tc *, char *);
  21. extern void nl_cli_tc_parse_linktype(struct rtnl_tc *, char *);
  22. extern void nl_cli_tc_parse_kind(struct rtnl_tc *, char *);
  23. struct nl_cli_tc_module
  24. {
  25. const char * tm_name;
  26. enum rtnl_tc_type tm_type;
  27. struct rtnl_tc_ops * tm_ops;
  28. void (*tm_parse_argv)(struct rtnl_tc *, int, char **);
  29. struct nl_list_head tm_list;
  30. };
  31. extern struct nl_cli_tc_module *nl_cli_tc_lookup(struct rtnl_tc_ops *);
  32. extern void nl_cli_tc_register(struct nl_cli_tc_module *);
  33. extern void nl_cli_tc_unregister(struct nl_cli_tc_module *);
  34. #endif