1 /* vi: set sw=4 ts=4: */
2 #ifndef IP_COMMON_H
3 #define IP_COMMON_H 1
4 
5 #include "libbb.h"
6 #include <asm/types.h>
7 #include <linux/netlink.h>
8 #include <linux/rtnetlink.h>
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
15 
16 PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
17 
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);
23 
24 int FAST_FUNC do_ipaddr(char **argv);
25 int FAST_FUNC do_iproute(char **argv);
26 int FAST_FUNC do_iprule(char **argv);
27 int FAST_FUNC do_ipneigh(char **argv);
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);
33 
34 POP_SAVED_FUNCTION_VISIBILITY
35 
36 #ifndef	INFINITY_LIFE_TIME
37 #define     INFINITY_LIFE_TIME      0xFFFFFFFFU
38 #endif
39 
40 #endif
41