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
|
|
|
|
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
|
|
|
|
|