Watt-32 tcp/ip  2.2 dev-rel.10
tapwin32.h
1 #pragma once
2 
3 typedef void *HTAP;
4 
5 HTAP OpenTapInterface (const char *Name, const unsigned char MacAddr[6]);
6 bool ChangeMediaStatus (HTAP hTap, bool status);
7 void CloseTap (HTAP hTap);
8 int ReadPacket (HTAP hTap, unsigned char buffer[1500]);
9 bool SendPacket (HTAP hTap, unsigned char *buffer, int size);