]> git.proxmox.com Git - systemd.git/blame - src/network/netdev/tuntap.h
New upstream version 240
[systemd.git] / src / network / netdev / tuntap.h
CommitLineData
52ad194e 1/* SPDX-License-Identifier: LGPL-2.1+ */
aa27b158
MP
2#pragma once
3
5eef597e
MP
4typedef struct TunTap TunTap;
5
2897b343 6#include "netdev/netdev.h"
5eef597e
MP
7
8struct TunTap {
9 NetDev meta;
663996b3 10
5eef597e
MP
11 char *user_name;
12 char *group_name;
13 bool one_queue;
14 bool multi_queue;
15 bool packet_info;
7035cd9e 16 bool vnet_hdr;
5eef597e 17};
60f067b4 18
aa27b158
MP
19DEFINE_NETDEV_CAST(TUN, TunTap);
20DEFINE_NETDEV_CAST(TAP, TunTap);
5eef597e
MP
21extern const NetDevVTable tun_vtable;
22extern const NetDevVTable tap_vtable;