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
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) James Yonan, 2003-2004,
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 as published by
16
* the Free Software Foundation; either version 2 of the License, or
17
* (at your option) any later version.
19
* This program is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
* GNU General Public License for more details.
24
* You should have received a copy of the GNU General Public License
25
* along with this program (see the file COPYING included with this
26
* distribution); if not, write to the Free Software Foundation, Inc.,
27
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
34
#define NOTE_ERROR(a) \
36
a->m_LastErrorFilename = __FILE__; \
37
a->m_LastErrorLineNumber = __LINE__; \
45
unsigned int capacity;
51
VOID MyDebugPrint (const unsigned char* format, ...);
53
VOID MyAssert (const unsigned char *file, int line);
55
VOID DumpPacket (const char *prefix,
56
const unsigned char *data,
59
VOID DumpPacket2 (const char *prefix,
60
const ETH_HEADER *eth,
61
const unsigned char *data,
64
#define DEBUGP(fmt) { MyDebugPrint fmt; }
66
#define MYASSERT(exp) \
70
MyAssert(__FILE__, __LINE__); \
74
#define DUMP_PACKET(prefix, data, len) \
75
DumpPacket (prefix, data, len)
77
#define DUMP_PACKET2(prefix, eth, data, len) \
78
DumpPacket2 (prefix, eth, data, len)
84
#define DUMP_PACKET(prefix, data, len)
85
#define DUMP_PACKET2(prefix, eth, data, len)