summaryrefslogtreecommitdiffstats
path: root/ip/tunnel.h
diff options
context:
space:
mode:
authorMasahide NAKAMURA <nakam@linux-ipv6.org>2006-11-24 12:27:03 +0900
committerStephen Hemminger <shemminger@osdl.org>2006-11-27 08:41:10 -0800
commitd9bd1bd945b12b52e7825aa2742fa15ffa09651a (patch)
treeb0c89f74f46842508f81d1601d1e7521ad2e33ca /ip/tunnel.h
parent141bb60640efb17844b9b9c87d62f679c3036238 (diff)
TUNNEL: Split common functions to export them.
Split common functions like ioctl to export them. This is a preparation to support to configure IPv6-over-IPv6 tunnel. This patch also includes minor improvemen: o to stop to include unused headers o to change function static if it is not needed to be exported Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Diffstat (limited to 'ip/tunnel.h')
-rw-r--r--ip/tunnel.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/ip/tunnel.h b/ip/tunnel.h
new file mode 100644
index 00000000..72512e8f
--- /dev/null
+++ b/ip/tunnel.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C)2006 USAGI/WIDE Project
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+/*
+ * Author:
+ * Masahide NAKAMURA @USAGI
+ */
+#ifndef __TUNNEL_H__
+#define __TUNNEL_H__ 1
+
+#include <linux/types.h>
+
+const char *tnl_strproto(__u8 proto);
+int tnl_ioctl_get_ifindex(const char *dev);
+int tnl_ioctl_get_iftype(const char *dev);
+char * tnl_ioctl_get_ifname(int idx);
+int tnl_get_ioctl(const char *basedev, void *p);
+int tnl_add_ioctl(int cmd, const char *basedev, const char *name, void *p);
+int tnl_del_ioctl(const char *basedev, const char *name, void *p);
+
+#endif