Get rid of "Interrupted service call" messages in syslog
[tomato.git] / release / src / router / openvpn / tap-win32 / hexdump.h
blob8814ed143155e09e358f2fb294694638c93e15fb
1 /*
2 * TAP-Win32/TAP-Win64 -- A kernel driver to provide virtual tap
3 * device functionality on Windows.
5 * This code was inspired by the CIPE-Win32 driver by Damion K. Wilson.
7 * This source code is Copyright (C) 2002-2009 OpenVPN Technologies, Inc.,
8 * and is released under the GPL version 2 (see below), however due
9 * to the extra costs of supporting Windows Vista, OpenVPN Solutions
10 * LLC reserves the right to change the terms of the TAP-Win32/TAP-Win64
11 * license for versions 9.1 and higher prior to the official release of
12 * OpenVPN 2.1.
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 #ifndef HEXDUMP_DEFINED
30 #define HEXDUMP_DEFINED
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
36 //=====================================================================================
37 // Debug Routines
38 //=====================================================================================
40 #ifndef NDIS_MINIPORT_DRIVER
41 # include <stdio.h>
42 # include <ctype.h>
43 # include <windows.h>
44 # include <winnt.h>
45 # include <memory.h>
47 # ifndef DEBUGP
48 # define DEBUGP(fmt) { DbgMessage fmt; }
49 # endif
51 extern VOID (*DbgMessage)(char *p_Format, ...);
53 VOID DisplayDebugString (char *p_Format, ...);
54 #endif
56 //===================================================================================
57 // Reporting / Debugging
58 //===================================================================================
59 #define IfPrint(c) (c >= 32 && c < 127 ? c : '.')
61 VOID HexDump (unsigned char *p_Buffer, unsigned long p_Size);
63 #ifdef __cplusplus
65 #endif
67 #endif