networkd-netdev-tunnel.h revision b48288868a4ffb0157d1b6d60c3215d010efaad6
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright 2014 Tom Gundersen <teg@jklm.no>
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
#include "networkd-netdev.h"
typedef enum Ip6TnlMode {
} Ip6TnlMode;
typedef enum IPv6FlowLabel {
struct Tunnel {
int family;
int ipv6_flowlabel;
unsigned ttl;
unsigned tos;
unsigned flags;
union in_addr_union local;
union in_addr_union remote;
bool pmtudisc;
bool copy_dscp;
};
extern const NetDevVTable ipip_vtable;
extern const NetDevVTable sit_vtable;
extern const NetDevVTable vti_vtable;
extern const NetDevVTable vti6_vtable;
extern const NetDevVTable gre_vtable;
extern const NetDevVTable gretap_vtable;
extern const NetDevVTable ip6gre_vtable;
extern const NetDevVTable ip6gretap_vtable;
extern const NetDevVTable ip6tnl_vtable;
unsigned section_line, const char *lvalue,
void *userdata);
int config_parse_tunnel_address(const char *unit,
const char *filename,
unsigned line,
const char *section,
unsigned section_line,
const char *lvalue,
int ltype,
const char *rvalue,
void *data,
void *userdata);
unsigned section_line, const char *lvalue,
void *userdata);
unsigned section_line, const char *lvalue,
void *userdata);