2017-11-18 17:09:20 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
2016-02-16 20:05:15 +01:00
|
|
|
#pragma once
|
|
|
|
|
2014-07-16 13:17:10 +02:00
|
|
|
typedef struct TunTap TunTap;
|
|
|
|
|
2016-11-13 02:01:19 +01:00
|
|
|
#include "netdev/netdev.h"
|
2014-07-06 14:07:34 +02:00
|
|
|
|
2014-07-16 13:17:10 +02:00
|
|
|
struct TunTap {
|
|
|
|
NetDev meta;
|
|
|
|
|
|
|
|
char *user_name;
|
|
|
|
char *group_name;
|
|
|
|
bool one_queue;
|
|
|
|
bool multi_queue;
|
|
|
|
bool packet_info;
|
2015-07-14 10:25:52 +02:00
|
|
|
bool vnet_hdr;
|
2014-07-16 13:17:10 +02:00
|
|
|
};
|
|
|
|
|
2016-04-29 04:52:04 +02:00
|
|
|
DEFINE_NETDEV_CAST(TUN, TunTap);
|
|
|
|
DEFINE_NETDEV_CAST(TAP, TunTap);
|
2014-07-06 14:07:34 +02:00
|
|
|
extern const NetDevVTable tun_vtable;
|
|
|
|
extern const NetDevVTable tap_vtable;
|