]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/netdev/tuntap.h
tree-wide: drop license boilerplate
[thirdparty/systemd.git] / src / network / netdev / tuntap.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
0ef6f454
LP
2#pragma once
3
3be1d7e0
TG
4/***
5 This file is part of systemd.
6
7 Copyright 2014 Tom Gundersen <teg@jklm.no>
3be1d7e0
TG
8***/
9
aa9f1140
TG
10typedef struct TunTap TunTap;
11
441e9ae4 12#include "netdev/netdev.h"
3be1d7e0 13
aa9f1140
TG
14struct TunTap {
15 NetDev meta;
16
17 char *user_name;
18 char *group_name;
19 bool one_queue;
20 bool multi_queue;
21 bool packet_info;
f5f07dbf 22 bool vnet_hdr;
aa9f1140
TG
23};
24
634f0f98
ZJS
25DEFINE_NETDEV_CAST(TUN, TunTap);
26DEFINE_NETDEV_CAST(TAP, TunTap);
3be1d7e0
TG
27extern const NetDevVTable tun_vtable;
28extern const NetDevVTable tap_vtable;