"Robert P. J. Day" | 63fc1a9 | 2006-07-02 19:47:05 +0000 | [diff] [blame] | 1 | /* vi: set sw=4 ts=4: */ |
Denis Vlasenko | f81e8db | 2009-04-09 12:35:13 +0000 | [diff] [blame] | 2 | #ifndef IP_COMMON_H |
| 3 | #define IP_COMMON_H 1 |
Bernhard Reutner-Fischer | fd4b61d | 2006-06-16 12:28:39 +0000 | [diff] [blame] | 4 | |
Denis Vlasenko | b6adbf1 | 2007-05-26 19:00:18 +0000 | [diff] [blame] | 5 | #include "libbb.h" |
Bernhard Reutner-Fischer | fd4b61d | 2006-06-16 12:28:39 +0000 | [diff] [blame] | 6 | #include <asm/types.h> |
| 7 | #include <linux/netlink.h> |
| 8 | #include <linux/rtnetlink.h> |
Bernhard Reutner-Fischer | bb59f02 | 2006-12-04 15:57:17 +0000 | [diff] [blame] | 9 | #if !defined IFA_RTA |
| 10 | #include <linux/if_addr.h> |
| 11 | #endif |
| 12 | #if !defined IFLA_RTA |
| 13 | #include <linux/if_link.h> |
| 14 | #endif |
Bernhard Reutner-Fischer | fd4b61d | 2006-06-16 12:28:39 +0000 | [diff] [blame] | 15 | |
Denis Vlasenko | f81e8db | 2009-04-09 12:35:13 +0000 | [diff] [blame] | 16 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN |
Denis Vlasenko | 98636eb | 2008-05-09 17:59:34 +0000 | [diff] [blame] | 17 | |
Denis Vlasenko | ed6a49c | 2007-11-18 22:56:25 +0000 | [diff] [blame] | 18 | extern char **ip_parse_common_args(char **argv); |
Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 19 | extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); |
Denis Vlasenko | ed6a49c | 2007-11-18 22:56:25 +0000 | [diff] [blame] | 20 | extern int ipaddr_list_or_flush(char **argv, int flush); |
| 21 | extern int iproute_monitor(char **argv); |
Denis Vlasenko | a60f84e | 2008-07-05 09:18:54 +0000 | [diff] [blame] | 22 | extern void iplink_usage(void) NORETURN; |
Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 23 | extern void ipneigh_reset_filter(void); |
Denis Vlasenko | 540a2a1 | 2007-04-07 01:14:45 +0000 | [diff] [blame] | 24 | |
Denis Vlasenko | ed6a49c | 2007-11-18 22:56:25 +0000 | [diff] [blame] | 25 | extern int do_ipaddr(char **argv); |
| 26 | extern int do_iproute(char **argv); |
| 27 | extern int do_iprule(char **argv); |
| 28 | extern int do_ipneigh(char **argv); |
| 29 | extern int do_iptunnel(char **argv); |
| 30 | extern int do_iplink(char **argv); |
| 31 | extern int do_ipmonitor(char **argv); |
| 32 | extern int do_multiaddr(char **argv); |
| 33 | extern int do_multiroute(char **argv); |
Denis Vlasenko | 98636eb | 2008-05-09 17:59:34 +0000 | [diff] [blame] | 34 | |
Denis Vlasenko | f81e8db | 2009-04-09 12:35:13 +0000 | [diff] [blame] | 35 | POP_SAVED_FUNCTION_VISIBILITY |
Denis Vlasenko | 98636eb | 2008-05-09 17:59:34 +0000 | [diff] [blame] | 36 | |
Denis Vlasenko | f81e8db | 2009-04-09 12:35:13 +0000 | [diff] [blame] | 37 | #endif |