blob: 40171bed9aa58e38ddfedb7c748efdcfdf73cdae [file] [log] [blame]
"Robert P. J. Day"63fc1a92006-07-02 19:47:05 +00001/* vi: set sw=4 ts=4: */
Denis Vlasenkof81e8db2009-04-09 12:35:13 +00002#ifndef IP_COMMON_H
3#define IP_COMMON_H 1
Bernhard Reutner-Fischerfd4b61d2006-06-16 12:28:39 +00004
Denis Vlasenkob6adbf12007-05-26 19:00:18 +00005#include "libbb.h"
Bernhard Reutner-Fischerfd4b61d2006-06-16 12:28:39 +00006#include <asm/types.h>
7#include <linux/netlink.h>
8#include <linux/rtnetlink.h>
Bernhard Reutner-Fischerbb59f022006-12-04 15:57:17 +00009#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-Fischerfd4b61d2006-06-16 12:28:39 +000015
Denis Vlasenkof81e8db2009-04-09 12:35:13 +000016PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
Denis Vlasenko98636eb2008-05-09 17:59:34 +000017
Denys Vlasenko2e9b5512010-07-24 23:27:38 +020018char FAST_FUNC **ip_parse_common_args(char **argv);
19//int FAST_FUNC print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
20int 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 Vlasenko540a2a12007-04-07 01:14:45 +000023
Denys Vlasenko2e9b5512010-07-24 23:27:38 +020024int FAST_FUNC do_ipaddr(char **argv);
25int FAST_FUNC do_iproute(char **argv);
26int FAST_FUNC do_iprule(char **argv);
Curt Brune69934702015-10-14 12:53:47 +020027int FAST_FUNC do_ipneigh(char **argv);
Denys Vlasenko2e9b5512010-07-24 23:27:38 +020028int FAST_FUNC do_iptunnel(char **argv);
29int 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 Vlasenko98636eb2008-05-09 17:59:34 +000033
Denis Vlasenkof81e8db2009-04-09 12:35:13 +000034POP_SAVED_FUNCTION_VISIBILITY
Denis Vlasenko98636eb2008-05-09 17:59:34 +000035
Denis Vlasenkof81e8db2009-04-09 12:35:13 +000036#endif