diff options
Diffstat (limited to 'ip/tunnel.h')
-rw-r--r-- | ip/tunnel.h | 35 |
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 |