ip_common.h 1012 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* vi: set sw=4 ts=4: */
  2. #ifndef IP_COMMON_H
  3. #define IP_COMMON_H 1
  4. #include "libbb.h"
  5. #include <asm/types.h>
  6. #include <linux/netlink.h>
  7. #include <linux/rtnetlink.h>
  8. #if !defined IFA_RTA
  9. #include <linux/if_addr.h>
  10. #endif
  11. #if !defined IFLA_RTA
  12. #include <linux/if_link.h>
  13. #endif
  14. PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
  15. char FAST_FUNC **ip_parse_common_args(char **argv);
  16. //int FAST_FUNC print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
  17. int FAST_FUNC ipaddr_list_or_flush(char **argv, int flush);
  18. //int FAST_FUNC iproute_monitor(char **argv);
  19. //void FAST_FUNC ipneigh_reset_filter(void);
  20. int FAST_FUNC do_ipaddr(char **argv);
  21. int FAST_FUNC do_iproute(char **argv);
  22. int FAST_FUNC do_iprule(char **argv);
  23. int FAST_FUNC do_ipneigh(char **argv);
  24. int FAST_FUNC do_iptunnel(char **argv);
  25. int FAST_FUNC do_iplink(char **argv);
  26. //int FAST_FUNC do_ipmonitor(char **argv);
  27. //int FAST_FUNC do_multiaddr(char **argv);
  28. //int FAST_FUNC do_multiroute(char **argv);
  29. POP_SAVED_FUNCTION_VISIBILITY
  30. #endif