]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/netdev/tuntap.h
tree-wide: drop license boilerplate
[thirdparty/systemd.git] / src / network / netdev / tuntap.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 This file is part of systemd.
6
7 Copyright 2014 Tom Gundersen <teg@jklm.no>
8 ***/
9
10 typedef struct TunTap TunTap;
11
12 #include "netdev/netdev.h"
13
14 struct 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;
22 bool vnet_hdr;
23 };
24
25 DEFINE_NETDEV_CAST(TUN, TunTap);
26 DEFINE_NETDEV_CAST(TAP, TunTap);
27 extern const NetDevVTable tun_vtable;
28 extern const NetDevVTable tap_vtable;