]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/netdev/tuntap.h
man/run0: Describe environment variables set (#32622)
[thirdparty/systemd.git] / src / network / netdev / tuntap.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 typedef struct TunTap TunTap;
5
6 #include "netdev.h"
7
8 struct TunTap {
9 NetDev meta;
10
11 int fd;
12 char *user_name;
13 char *group_name;
14 bool multi_queue;
15 bool packet_info;
16 bool vnet_hdr;
17 bool keep_fd;
18 };
19
20 DEFINE_NETDEV_CAST(TUN, TunTap);
21 DEFINE_NETDEV_CAST(TAP, TunTap);
22 extern const NetDevVTable tun_vtable;
23 extern const NetDevVTable tap_vtable;
24
25 int manager_add_tuntap_fd(Manager *m, int fd, const char *name);
26 void manager_clear_unmanaged_tuntap_fds(Manager *m);