ip_common.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #if __GNUC_PREREQ(4,1)
  15. # pragma GCC visibility push(hidden)
  16. #endif
  17. extern char **ip_parse_common_args(char **argv);
  18. extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
  19. extern int ipaddr_list_or_flush(char **argv, int flush);
  20. extern int iproute_monitor(char **argv);
  21. extern void iplink_usage(void) ATTRIBUTE_NORETURN;
  22. extern void ipneigh_reset_filter(void);
  23. extern int do_ipaddr(char **argv);
  24. extern int do_iproute(char **argv);
  25. extern int do_iprule(char **argv);
  26. extern int do_ipneigh(char **argv);
  27. extern int do_iptunnel(char **argv);
  28. extern int do_iplink(char **argv);
  29. extern int do_ipmonitor(char **argv);
  30. extern int do_multiaddr(char **argv);
  31. extern int do_multiroute(char **argv);
  32. #if __GNUC_PREREQ(4,1)
  33. # pragma GCC visibility pop
  34. #endif
  35. #endif /* ip_common.h */