neigh.h 953 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * netlink/cli/neighbour.h CLI Neighbour 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-2009 Thomas Graf <tgraf@suug.ch>
  10. */
  11. #ifndef __NETLINK_CLI_NEIGH_H_
  12. #define __NETLINK_CLI_NEIGH_H_
  13. #include <netlink/route/neighbour.h>
  14. #define nl_cli_neigh_alloc_cache(sk) \
  15. nl_cli_alloc_cache((sk), "neighbour", rtnl_neigh_alloc_cache)
  16. extern struct rtnl_neigh *nl_cli_neigh_alloc(void);
  17. extern void nl_cli_neigh_parse_dst(struct rtnl_neigh *, char *);
  18. extern void nl_cli_neigh_parse_lladdr(struct rtnl_neigh *, char *);
  19. extern void nl_cli_neigh_parse_dev(struct rtnl_neigh *, struct nl_cache *, char *);
  20. extern void nl_cli_neigh_parse_family(struct rtnl_neigh *, char *);
  21. extern void nl_cli_neigh_parse_state(struct rtnl_neigh *, char *);
  22. #endif