2006-07-02 19:47:05 +00:00
|
|
|
/* vi: set sw=4 ts=4: */
|
2006-01-22 22:55:11 +00:00
|
|
|
#ifndef _IP_COMMON_H
|
|
|
|
#define _IP_COMMON_H 1
|
2006-06-16 12:28:39 +00:00
|
|
|
|
2007-05-26 19:00:18 +00:00
|
|
|
#include "libbb.h"
|
2006-06-16 12:28:39 +00:00
|
|
|
#include <asm/types.h>
|
|
|
|
#include <linux/netlink.h>
|
|
|
|
#include <linux/rtnetlink.h>
|
2006-12-04 15:57:17 +00:00
|
|
|
#if !defined IFA_RTA
|
|
|
|
#include <linux/if_addr.h>
|
|
|
|
#endif
|
|
|
|
#if !defined IFLA_RTA
|
|
|
|
#include <linux/if_link.h>
|
|
|
|
#endif
|
2006-06-16 12:28:39 +00:00
|
|
|
|
2007-11-18 22:56:25 +00:00
|
|
|
extern char **ip_parse_common_args(char **argv);
|
2002-11-10 01:33:55 +00:00
|
|
|
extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
|
2007-11-18 22:56:25 +00:00
|
|
|
extern int ipaddr_list_or_flush(char **argv, int flush);
|
|
|
|
extern int iproute_monitor(char **argv);
|
2006-01-22 22:55:11 +00:00
|
|
|
extern void iplink_usage(void) ATTRIBUTE_NORETURN;
|
2002-11-10 01:33:55 +00:00
|
|
|
extern void ipneigh_reset_filter(void);
|
2007-04-07 01:14:45 +00:00
|
|
|
|
2007-11-18 22:56:25 +00:00
|
|
|
extern int do_ipaddr(char **argv);
|
|
|
|
extern int do_iproute(char **argv);
|
|
|
|
extern int do_iprule(char **argv);
|
|
|
|
extern int do_ipneigh(char **argv);
|
|
|
|
extern int do_iptunnel(char **argv);
|
|
|
|
extern int do_iplink(char **argv);
|
|
|
|
extern int do_ipmonitor(char **argv);
|
|
|
|
extern int do_multiaddr(char **argv);
|
|
|
|
extern int do_multiroute(char **argv);
|
2006-01-22 22:55:11 +00:00
|
|
|
#endif /* ip_common.h */
|