blob: 346d0b96c9ebf7aba770d0427018e9c848a4108d [file] [log] [blame]
"Robert P. J. Day"63fc1a92006-07-02 19:47:05 +00001/* vi: set sw=4 ts=4: */
Bernhard Reutner-Fischer86f5c992006-01-22 22:55:11 +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 Vlasenko98636eb2008-05-09 17:59:34 +000016#if __GNUC_PREREQ(4,1)
17# pragma GCC visibility push(hidden)
18#endif
19
Denis Vlasenkoed6a49c2007-11-18 22:56:25 +000020extern char **ip_parse_common_args(char **argv);
Glenn L McGrath9a2d2722002-11-10 01:33:55 +000021extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
Denis Vlasenkoed6a49c2007-11-18 22:56:25 +000022extern int ipaddr_list_or_flush(char **argv, int flush);
23extern int iproute_monitor(char **argv);
Bernhard Reutner-Fischer86f5c992006-01-22 22:55:11 +000024extern void iplink_usage(void) ATTRIBUTE_NORETURN;
Glenn L McGrath9a2d2722002-11-10 01:33:55 +000025extern void ipneigh_reset_filter(void);
Denis Vlasenko540a2a12007-04-07 01:14:45 +000026
Denis Vlasenkoed6a49c2007-11-18 22:56:25 +000027extern int do_ipaddr(char **argv);
28extern int do_iproute(char **argv);
29extern int do_iprule(char **argv);
30extern int do_ipneigh(char **argv);
31extern int do_iptunnel(char **argv);
32extern int do_iplink(char **argv);
33extern int do_ipmonitor(char **argv);
34extern int do_multiaddr(char **argv);
35extern int do_multiroute(char **argv);
Denis Vlasenko98636eb2008-05-09 17:59:34 +000036
37#if __GNUC_PREREQ(4,1)
38# pragma GCC visibility pop
39#endif
40
Bernhard Reutner-Fischer86f5c992006-01-22 22:55:11 +000041#endif /* ip_common.h */