2006-07-03 01:17:05 +05:30
|
|
|
/* vi: set sw=4 ts=4: */
|
2009-04-09 18:05:13 +05:30
|
|
|
#ifndef IP_COMMON_H
|
|
|
|
#define IP_COMMON_H 1
|
2006-06-16 17:58:39 +05:30
|
|
|
|
2007-05-27 00:30:18 +05:30
|
|
|
#include "libbb.h"
|
2006-06-16 17:58:39 +05:30
|
|
|
#include <asm/types.h>
|
|
|
|
#include <linux/netlink.h>
|
|
|
|
#include <linux/rtnetlink.h>
|
2006-12-04 21:27:17 +05:30
|
|
|
#if !defined IFA_RTA
|
|
|
|
#include <linux/if_addr.h>
|
|
|
|
#endif
|
|
|
|
#if !defined IFLA_RTA
|
|
|
|
#include <linux/if_link.h>
|
|
|
|
#endif
|
2006-06-16 17:58:39 +05:30
|
|
|
|
2009-04-09 18:05:13 +05:30
|
|
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
2008-05-09 23:29:34 +05:30
|
|
|
|
2010-07-25 02:57:38 +05:30
|
|
|
char FAST_FUNC **ip_parse_common_args(char **argv);
|
|
|
|
//int FAST_FUNC print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
|
|
|
|
int FAST_FUNC ipaddr_list_or_flush(char **argv, int flush);
|
|
|
|
//int FAST_FUNC iproute_monitor(char **argv);
|
|
|
|
//void FAST_FUNC ipneigh_reset_filter(void);
|
2007-04-07 06:44:45 +05:30
|
|
|
|
2010-07-25 02:57:38 +05:30
|
|
|
int FAST_FUNC do_ipaddr(char **argv);
|
|
|
|
int FAST_FUNC do_iproute(char **argv);
|
|
|
|
int FAST_FUNC do_iprule(char **argv);
|
|
|
|
//int FAST_FUNC do_ipneigh(char **argv);
|
|
|
|
int FAST_FUNC do_iptunnel(char **argv);
|
|
|
|
int FAST_FUNC do_iplink(char **argv);
|
|
|
|
//int FAST_FUNC do_ipmonitor(char **argv);
|
|
|
|
//int FAST_FUNC do_multiaddr(char **argv);
|
|
|
|
//int FAST_FUNC do_multiroute(char **argv);
|
2008-05-09 23:29:34 +05:30
|
|
|
|
2009-04-09 18:05:13 +05:30
|
|
|
POP_SAVED_FUNCTION_VISIBILITY
|
2008-05-09 23:29:34 +05:30
|
|
|
|
2009-04-09 18:05:13 +05:30
|
|
|
#endif
|