link.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * netlink/cli/link.h CLI Link 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) 2008-2010 Thomas Graf <tgraf@suug.ch>
  10. */
  11. #ifndef __NETLINK_CLI_LINK_H_
  12. #define __NETLINK_CLI_LINK_H_
  13. #include <netlink/route/link.h>
  14. #include <netlink/cli/utils.h>
  15. extern struct rtnl_link *nl_cli_link_alloc(void);
  16. extern struct nl_cache *nl_cli_link_alloc_cache_family(struct nl_sock *, int);
  17. extern struct nl_cache *nl_cli_link_alloc_cache(struct nl_sock *);
  18. extern void nl_cli_link_parse_family(struct rtnl_link *, char *);
  19. extern void nl_cli_link_parse_name(struct rtnl_link *, char *);
  20. extern void nl_cli_link_parse_mtu(struct rtnl_link *, char *);
  21. extern void nl_cli_link_parse_ifindex(struct rtnl_link *, char *);
  22. extern void nl_cli_link_parse_txqlen(struct rtnl_link *, char *);
  23. extern void nl_cli_link_parse_weight(struct rtnl_link *, char *);
  24. extern void nl_cli_link_parse_ifalias(struct rtnl_link *, char *);
  25. #endif