summaryrefslogtreecommitdiffstats
path: root/tap-win32/types.h
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-09-26 07:40:02 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-09-26 07:40:02 +0000
commit3c7f2f553be4b3ba9412c1b3f64a258c469d78f4 (patch)
tree9d58836b0f1eade372de7ce15c41d6555d55ef21 /tap-win32/types.h
parent6fbf66fad3367b24fd6743bcd50254902fd9c8d5 (diff)
downloadopenvpn-3c7f2f553be4b3ba9412c1b3f64a258c469d78f4.tar.gz
openvpn-3c7f2f553be4b3ba9412c1b3f64a258c469d78f4.tar.xz
openvpn-3c7f2f553be4b3ba9412c1b3f64a258c469d78f4.zip
version 2.1_beta1
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@581 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'tap-win32/types.h')
-rwxr-xr-xtap-win32/types.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/tap-win32/types.h b/tap-win32/types.h
index f5a4291..45e0033 100755
--- a/tap-win32/types.h
+++ b/tap-win32/types.h
@@ -92,8 +92,8 @@ TapExtension, *TapExtensionPointer;
typedef struct _TapPacket
{
# define TAP_PACKET_SIZE(data_size) (sizeof (TapPacket) + (data_size))
-# define TP_POINT_TO_POINT 0x80000000
-# define TP_SIZE_MASK (~TP_POINT_TO_POINT)
+# define TP_TUN 0x80000000
+# define TP_SIZE_MASK (~TP_TUN)
ULONG m_SizeFlags;
UCHAR m_Data []; // m_Data must be the last struct member
}
@@ -107,6 +107,9 @@ typedef struct _TapAdapter
BOOLEAN m_InterfaceIsRunning;
NDIS_HANDLE m_MiniportAdapterHandle;
LONG m_Rx, m_Tx, m_RxErr, m_TxErr;
+#if PACKET_TRUNCATION_CHECK
+ LONG m_RxTrunc, m_TxTrunc;
+#endif
NDIS_MEDIUM m_Medium;
ULONG m_Lookahead;
ULONG m_MTU;
@@ -123,9 +126,10 @@ typedef struct _TapAdapter
char m_DeviceState;
// Info for point-to-point mode
- BOOLEAN m_PointToPoint;
+ BOOLEAN m_tun;
IPADDR m_localIP;
- IPADDR m_remoteIP;
+ IPADDR m_remoteNetwork;
+ IPADDR m_remoteNetmask;
ETH_HEADER m_TapToUser;
ETH_HEADER m_UserToTap;
MACADDR m_MAC_Broadcast;