blob: 15291780e57acaf1603852aaf9390977b87b401f [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
5#include "busybox.h"
6#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
Glenn L McGrathf112daa2002-12-01 23:04:06 +000016extern int preferred_family;
17extern char * _SL_;
18
19extern void ip_parse_common_args(int *argcp, char ***argvp);
Glenn L McGrath9a2d2722002-11-10 01:33:55 +000020extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
Eric Andersend8fdf0c2003-01-22 01:20:35 +000021extern int ipaddr_list_or_flush(int argc, char **argv, int flush);
Glenn L McGrath9a2d2722002-11-10 01:33:55 +000022extern int iproute_monitor(int argc, char **argv);
Bernhard Reutner-Fischer86f5c992006-01-22 22:55:11 +000023extern void iplink_usage(void) ATTRIBUTE_NORETURN;
Glenn L McGrath9a2d2722002-11-10 01:33:55 +000024extern void ipneigh_reset_filter(void);
Glenn L McGrath9a2d2722002-11-10 01:33:55 +000025extern int do_ipaddr(int argc, char **argv);
26extern int do_iproute(int argc, char **argv);
27extern int do_iprule(int argc, char **argv);
28extern int do_ipneigh(int argc, char **argv);
29extern int do_iptunnel(int argc, char **argv);
30extern int do_iplink(int argc, char **argv);
31extern int do_ipmonitor(int argc, char **argv);
32extern int do_multiaddr(int argc, char **argv);
33extern int do_multiroute(int argc, char **argv);
Bernhard Reutner-Fischer86f5c992006-01-22 22:55:11 +000034#endif /* ip_common.h */