haiku/headers/private/net/net_tun.h
François Revol 23901a75de Stub out a tun/tap module from the loopback code
Not functional yet.

Change-Id: I6f7427c5fa176595927d73dd3b11b04945f66d84
2019-04-17 14:12:59 +00:00

34 lines
594 B
C

/*
* Copyright 2008, Haiku, Inc. All Rights Reserved.
* This file may be used under the terms of the MIT License.
*/
#ifndef NET_TUN_H
#define NET_TUN_H
#include <sys/socket.h>
#include <net_device.h>
// name of the kernel tun interface
#define NET_TUN_MODULE_NAME "network/devices/tun/v1"
struct tun_device : net_device {
//queue
/*
int fd;
uint32 frame_size;*/
};
struct tun_module_info {
struct net_device_module_info;
status_t (*tun_read)(net_device* device, net_buffer* buffer);
status_t (*tun_write)(net_device* device, net_buffer** _buffer);
};
#endif // NET_TUN_H