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