"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 | |
| 5 | #include "busybox.h" |
| 6 | #include <asm/types.h> |
| 7 | #include <linux/netlink.h> |
| 8 | #include <linux/rtnetlink.h> |
| 9 | |
| 10 | |
Glenn L McGrath | f112daa | 2002-12-01 23:04:06 +0000 | [diff] [blame] | 11 | extern int preferred_family; |
| 12 | extern char * _SL_; |
| 13 | |
| 14 | extern void ip_parse_common_args(int *argcp, char ***argvp); |
Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 15 | extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); |
Eric Andersen | d8fdf0c | 2003-01-22 01:20:35 +0000 | [diff] [blame] | 16 | extern int ipaddr_list_or_flush(int argc, char **argv, int flush); |
Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 17 | extern int iproute_monitor(int argc, char **argv); |
Bernhard Reutner-Fischer | 86f5c99 | 2006-01-22 22:55:11 +0000 | [diff] [blame] | 18 | extern void iplink_usage(void) ATTRIBUTE_NORETURN; |
Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 19 | extern void ipneigh_reset_filter(void); |
Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 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); |
Bernhard Reutner-Fischer | 86f5c99 | 2006-01-22 22:55:11 +0000 | [diff] [blame] | 29 | #endif /* ip_common.h */ |