ip_common.h 953 B

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