"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 | |
Denys Vlasenko | 2e9b551 | 2010-07-24 23:27:38 +0200 | [diff] [blame] | 18 | char FAST_FUNC **ip_parse_common_args(char **argv); |
| 19 | //int FAST_FUNC print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); |
| 20 | int FAST_FUNC ipaddr_list_or_flush(char **argv, int flush); |
| 21 | //int FAST_FUNC iproute_monitor(char **argv); |
| 22 | //void FAST_FUNC ipneigh_reset_filter(void); |
Denis Vlasenko | 540a2a1 | 2007-04-07 01:14:45 +0000 | [diff] [blame] | 23 | |
Denys Vlasenko | 2e9b551 | 2010-07-24 23:27:38 +0200 | [diff] [blame] | 24 | int FAST_FUNC do_ipaddr(char **argv); |
| 25 | int FAST_FUNC do_iproute(char **argv); |
| 26 | int FAST_FUNC do_iprule(char **argv); |
Curt Brune | 6993470 | 2015-10-14 12:53:47 +0200 | [diff] [blame] | 27 | int FAST_FUNC do_ipneigh(char **argv); |
Denys Vlasenko | 2e9b551 | 2010-07-24 23:27:38 +0200 | [diff] [blame] | 28 | int FAST_FUNC do_iptunnel(char **argv); |
| 29 | int FAST_FUNC do_iplink(char **argv); |
| 30 | //int FAST_FUNC do_ipmonitor(char **argv); |
| 31 | //int FAST_FUNC do_multiaddr(char **argv); |
| 32 | //int FAST_FUNC do_multiroute(char **argv); |
Denis Vlasenko | 98636eb | 2008-05-09 17:59:34 +0000 | [diff] [blame] | 33 | |
Denis Vlasenko | f81e8db | 2009-04-09 12:35:13 +0000 | [diff] [blame] | 34 | POP_SAVED_FUNCTION_VISIBILITY |
Denis Vlasenko | 98636eb | 2008-05-09 17:59:34 +0000 | [diff] [blame] | 35 | |
Denis Vlasenko | f81e8db | 2009-04-09 12:35:13 +0000 | [diff] [blame] | 36 | #endif |