ip_common.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* vi: set sw=4 ts=4: */
  2. #ifndef _IP_COMMON_H
  3. #define _IP_COMMON_H 1
  4. #include "busybox.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. extern int preferred_family;
  15. extern char * _SL_;
  16. extern void ip_parse_common_args(int *argcp, char ***argvp);
  17. extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
  18. extern int ipaddr_list_or_flush(int argc, char **argv, int flush);
  19. extern int iproute_monitor(int argc, char **argv);
  20. extern void iplink_usage(void) ATTRIBUTE_NORETURN;
  21. extern void ipneigh_reset_filter(void);
  22. extern int do_ipaddr(int argc, char **argv);
  23. extern int do_iproute(int argc, char **argv);
  24. extern int do_iprule(int argc, char **argv);
  25. extern int do_ipneigh(int argc, char **argv);
  26. extern int do_iptunnel(int argc, char **argv);
  27. extern int do_iplink(int argc, char **argv);
  28. extern int do_ipmonitor(int argc, char **argv);
  29. extern int do_multiaddr(int argc, char **argv);
  30. extern int do_multiroute(int argc, char **argv);
  31. #endif /* ip_common.h */