]>
Commit | Line | Data |
---|---|---|
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 |
10 | typedef struct TunTap TunTap; |
11 | ||
441e9ae4 | 12 | #include "netdev/netdev.h" |
3be1d7e0 | 13 | |
aa9f1140 TG |
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; | |
f5f07dbf | 22 | bool vnet_hdr; |
aa9f1140 TG |
23 | }; |
24 | ||
634f0f98 ZJS |
25 | DEFINE_NETDEV_CAST(TUN, TunTap); |
26 | DEFINE_NETDEV_CAST(TAP, TunTap); | |
3be1d7e0 TG |
27 | extern const NetDevVTable tun_vtable; |
28 | extern const NetDevVTable tap_vtable; |