1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 09:59:52 +03:00
SoftEtherVPN/src/Cedar/NullLan.h

43 lines
929 B
C
Raw Normal View History

2017-10-19 05:48:23 +03:00
// SoftEther VPN Source Code - Developer Edition Master Branch
2014-01-04 17:00:08 +04:00
// Cedar Communication Module
// NullLan.h
// Header of NullLan.c
#ifndef NULLLAN_H
#define NULLLAN_H
2021-04-05 05:48:25 +03:00
#include "CedarType.h"
#include "Mayaqua/MayaType.h"
2014-01-04 17:00:08 +04:00
#define NULL_PACKET_GENERATE_INTERVAL 100000000 // Packet generation interval
// NULL device structure
struct NULL_LAN
{
THREAD *PacketGeneratorThread;
CANCEL *Cancel;
QUEUE *PacketQueue;
volatile bool Halt;
EVENT *Event;
UCHAR MacAddr[6];
UCHAR Padding[2];
2014-10-03 19:09:23 +04:00
UINT Id;
2014-01-04 17:00:08 +04:00
};
PACKET_ADAPTER *NullGetPacketAdapter();
bool NullPaInit(SESSION *s);
CANCEL *NullPaGetCancel(SESSION *s);
UINT NullPaGetNextPacket(SESSION *s, void **data);
bool NullPaPutPacket(SESSION *s, void *data, UINT size);
void NullPaFree(SESSION *s);
void NullPacketGenerateThread(THREAD *t, void *param);
2014-10-03 19:09:23 +04:00
void NullGenerateMacAddress(UCHAR *mac, UINT id, UINT seq);
2014-01-04 17:00:08 +04:00
#endif // NULLAN_H