]> git.proxmox.com Git - mirror_iproute2.git/blame - ip/tunnel.h
iptunnel/ip6tunnel: Code cleanups
[mirror_iproute2.git] / ip / tunnel.h
CommitLineData
d9bd1bd9
MN
1/*
2 * Copyright (C)2006 USAGI/WIDE Project
ae665a52 3 *
d9bd1bd9
MN
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.
ae665a52 8 *
d9bd1bd9
MN
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.
ae665a52 13 *
d9bd1bd9 14 * You should have received a copy of the GNU General Public License
4d98ab00 15 * along with this program; if not, see <http://www.gnu.org/licenses>.
d9bd1bd9
MN
16 */
17/*
18 * Author:
19 * Masahide NAKAMURA @USAGI
20 */
21#ifndef __TUNNEL_H__
22#define __TUNNEL_H__ 1
23
24#include <linux/types.h>
25
bad76e6b 26struct rtattr;
affb3617 27struct rtnl_link_stats64;
bad76e6b 28
d9bd1bd9 29const char *tnl_strproto(__u8 proto);
ea71beac 30
d9bd1bd9
MN
31int tnl_get_ioctl(const char *basedev, void *p);
32int tnl_add_ioctl(int cmd, const char *basedev, const char *name, void *p);
33int tnl_del_ioctl(const char *basedev, const char *name, void *p);
a07e9912 34int tnl_prl_ioctl(int cmd, const char *name, void *p);
b88215c4
AC
35int tnl_6rd_ioctl(int cmd, const char *name, void *p);
36int tnl_ioctl_get_6rd(const char *name, void *p);
a7ed1520 37__be32 tnl_parse_key(const char *name, const char *key);
bad76e6b
SP
38void tnl_print_encap(struct rtattr *tb[],
39 int encap_type, int encap_flags,
40 int encap_sport, int encap_dport);
b761fc41
SP
41void tnl_print_endpoint(const char *name,
42 const struct rtattr *rta, int family);
affb3617
SP
43void tnl_print_stats(const struct rtnl_link_stats64 *s);
44
45int tnl_get_stats(const char *buf, struct rtnl_link_stats64 *s);
d9bd1bd9
MN
46
47#endif