blob: 9a03c0d7756e3fb05ee13bd94278d9a654ab41a4 [file] [log] [blame]
Masahide NAKAMURAd9bd1bd2006-11-24 12:27:03 +09001/*
2 * Copyright (C)2006 USAGI/WIDE Project
Stephen Hemmingerae665a52006-12-05 10:10:22 -08003 *
Masahide NAKAMURAd9bd1bd2006-11-24 12:27:03 +09004 * 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.
Stephen Hemmingerae665a52006-12-05 10:10:22 -08008 *
Masahide NAKAMURAd9bd1bd2006-11-24 12:27:03 +09009 * 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.
Stephen Hemmingerae665a52006-12-05 10:10:22 -080013 *
Masahide NAKAMURAd9bd1bd2006-11-24 12:27:03 +090014 * You should have received a copy of the GNU General Public License
Stephen Hemminger4d98ab02013-12-06 15:05:07 -080015 * along with this program; if not, see <http://www.gnu.org/licenses>.
Masahide NAKAMURAd9bd1bd2006-11-24 12:27:03 +090016 */
17/*
18 * Author:
19 * Masahide NAKAMURA @USAGI
20 */
21#ifndef __TUNNEL_H__
22#define __TUNNEL_H__ 1
23
24#include <linux/types.h>
25
26const char *tnl_strproto(__u8 proto);
Stephen Hemmingerea71bea2010-11-28 10:35:28 -080027
Masahide NAKAMURAd9bd1bd2006-11-24 12:27:03 +090028int tnl_get_ioctl(const char *basedev, void *p);
29int tnl_add_ioctl(int cmd, const char *basedev, const char *name, void *p);
30int tnl_del_ioctl(const char *basedev, const char *name, void *p);
Sascha Hlusiaka07e9912009-05-04 01:44:47 +020031int tnl_prl_ioctl(int cmd, const char *name, void *p);
Alexandre Cassenb88215c2009-12-16 02:38:29 +000032int tnl_6rd_ioctl(int cmd, const char *name, void *p);
33int tnl_ioctl_get_6rd(const char *name, void *p);
Phil Suttera7ed1522015-11-13 18:08:55 +010034__be32 tnl_parse_key(const char *name, const char *key);
Phil Sutter7d6aadc2015-12-18 11:58:06 +010035void tnl_print_stats(const char *buf);
Masahide NAKAMURAd9bd1bd2006-11-24 12:27:03 +090036
37#endif