svn cleanup
[anytun.git] / openvpn / tap-win32 / constants.h
blob37c1335212127881e00fb85facc5cd597b2f3c9d
1 /*
2 * TAP-Win32 -- A kernel driver to provide virtual tap device functionality
3 * on Windows. Originally derived from the CIPE-Win32
4 * project by Damion K. Wilson, with extensive modifications by
5 * James Yonan.
7 * All source code which derives from the CIPE-Win32 project is
8 * Copyright (C) Damion K. Wilson, 2003, and is released under the
9 * GPL version 2 (see below).
11 * All other source code is Copyright (C) 2002-2005 OpenVPN Solutions LLC,
12 * and is released under the GPL version 2 (see below).
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License version 2
16 * as published by the Free Software Foundation.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program (see the file COPYING included with this
25 * distribution); if not, write to the Free Software Foundation, Inc.,
26 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 //====================================================================
30 // Product and Version public settings
31 //====================================================================
33 #define PRODUCT_STRING "TAP-Win32 Adapter V8"
35 #define TAP_NDIS_MAJOR_VERSION 5
36 #define TAP_NDIS_MINOR_VERSION 0
38 //===========================================================
39 // Driver constants
40 //===========================================================
42 #define ETHERNET_HEADER_SIZE (sizeof (ETH_HEADER))
43 #define ETHERNET_MTU 1500
44 #define ETHERNET_PACKET_SIZE (ETHERNET_MTU + ETHERNET_HEADER_SIZE)
45 #define DEFAULT_PACKET_LOOKAHEAD (ETHERNET_PACKET_SIZE)
47 #define NIC_MAX_MCAST_LIST 32 // Max length of multicast address list
49 #define MINIMUM_MTU 576 // USE TCP Minimum MTU
50 #define MAXIMUM_MTU 65536 // IP maximum MTU
52 #define PACKET_QUEUE_SIZE 64 // tap -> userspace queue size
53 #define IRP_QUEUE_SIZE 16 // max number of simultaneous i/o operations from userspace
55 #define TAP_LITTLE_ENDIAN // affects ntohs, htonl, etc. functions