ip_common.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. extern void ip_parse_common_args(int *argcp, char ***argvp);
  15. extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
  16. extern int ipaddr_list_or_flush(int argc, char **argv, int flush);
  17. extern int iproute_monitor(int argc, char **argv);
  18. extern void iplink_usage(void) ATTRIBUTE_NORETURN;
  19. extern void ipneigh_reset_filter(void);
  20. extern int do_ipaddr(int argc, char **argv);
  21. extern int do_iproute(int argc, char **argv);
  22. extern int do_iprule(int argc, char **argv);
  23. extern int do_ipneigh(int argc, char **argv);
  24. extern int do_iptunnel(int argc, char **argv);
  25. extern int do_iplink(int argc, char **argv);
  26. extern int do_ipmonitor(int argc, char **argv);
  27. extern int do_multiaddr(int argc, char **argv);
  28. extern int do_multiroute(int argc, char **argv);
  29. #endif /* ip_common.h */