Home | History | Annotate | Download | only in ip
      1 /*
      2  * Copyright (C)2006 USAGI/WIDE Project
      3  *
      4  * This program is free software; you can redistribute it and/or modify
      5  * it under the terms of the GNU General Public License as published by
      6  * the Free Software Foundation; either version 2 of the License, or
      7  * (at your option) any later version.
      8  *
      9  * This program is distributed in the hope that it will be useful,
     10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     12  * GNU General Public License for more details.
     13  *
     14  * You should have received a copy of the GNU General Public License
     15  * along with this program; if not, write to the Free Software
     16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     17  */
     18 /*
     19  * Author:
     20  *	Masahide NAKAMURA @USAGI
     21  */
     22 #ifndef __TUNNEL_H__
     23 #define __TUNNEL_H__ 1
     24 
     25 #include <linux/types.h>
     26 
     27 const char *tnl_strproto(__u8 proto);
     28 int tnl_ioctl_get_ifindex(const char *dev);
     29 int tnl_ioctl_get_iftype(const char *dev);
     30 char * tnl_ioctl_get_ifname(int idx);
     31 int tnl_get_ioctl(const char *basedev, void *p);
     32 int tnl_add_ioctl(int cmd, const char *basedev, const char *name, void *p);
     33 int tnl_del_ioctl(const char *basedev, const char *name, void *p);
     34 int tnl_prl_ioctl(int cmd, const char *name, void *p);
     35 int tnl_6rd_ioctl(int cmd, const char *name, void *p);
     36 int tnl_ioctl_get_6rd(const char *name, void *p);
     37 
     38 #endif
     39