"Robert P. J. Day" | 63fc1a9 | 2006-07-02 19:47:05 +0000 | [diff] [blame] | 1 | /* vi: set sw=4 ts=4: */ |
Bernhard Reutner-Fischer | 86f5c99 | 2006-01-22 22:55:11 +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 | 98636eb | 2008-05-09 17:59:34 +0000 | [diff] [blame] | 16 | #if __GNUC_PREREQ(4,1) |
| 17 | # pragma GCC visibility push(hidden) |
| 18 | #endif |
| 19 | |
Denis Vlasenko | ed6a49c | 2007-11-18 22:56:25 +0000 | [diff] [blame] | 20 | extern char **ip_parse_common_args(char **argv); |
Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 21 | 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] | 22 | extern int ipaddr_list_or_flush(char **argv, int flush); |
| 23 | extern int iproute_monitor(char **argv); |
Bernhard Reutner-Fischer | 86f5c99 | 2006-01-22 22:55:11 +0000 | [diff] [blame] | 24 | extern void iplink_usage(void) ATTRIBUTE_NORETURN; |
Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 25 | extern void ipneigh_reset_filter(void); |
Denis Vlasenko | 540a2a1 | 2007-04-07 01:14:45 +0000 | [diff] [blame] | 26 | |
Denis Vlasenko | ed6a49c | 2007-11-18 22:56:25 +0000 | [diff] [blame] | 27 | extern int do_ipaddr(char **argv); |
| 28 | extern int do_iproute(char **argv); |
| 29 | extern int do_iprule(char **argv); |
| 30 | extern int do_ipneigh(char **argv); |
| 31 | extern int do_iptunnel(char **argv); |
| 32 | extern int do_iplink(char **argv); |
| 33 | extern int do_ipmonitor(char **argv); |
| 34 | extern int do_multiaddr(char **argv); |
| 35 | extern int do_multiroute(char **argv); |
Denis Vlasenko | 98636eb | 2008-05-09 17:59:34 +0000 | [diff] [blame] | 36 | |
| 37 | #if __GNUC_PREREQ(4,1) |
| 38 | # pragma GCC visibility pop |
| 39 | #endif |
| 40 | |
Bernhard Reutner-Fischer | 86f5c99 | 2006-01-22 22:55:11 +0000 | [diff] [blame] | 41 | #endif /* ip_common.h */ |