1 | /** @file
|
---|
2 | * VirtualBox - TAP for Windows definitions.
|
---|
3 | */
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2006 InnoTek Systemberatung GmbH
|
---|
7 | *
|
---|
8 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | * available from http://www.virtualbox.org. This file is free software;
|
---|
10 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | * General Public License as published by the Free Software Foundation,
|
---|
12 | * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
13 | * distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
14 | * be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | *
|
---|
16 | * If you received this file as part of a commercial VirtualBox
|
---|
17 | * distribution, then only the terms of your commercial VirtualBox
|
---|
18 | * license agreement apply instead of the previous paragraph.
|
---|
19 | */
|
---|
20 |
|
---|
21 | #ifndef __VBox_tapwin32_h__
|
---|
22 | #define __VBox_tapwin32_h__
|
---|
23 |
|
---|
24 | #include <windows.h>
|
---|
25 |
|
---|
26 | //=============
|
---|
27 | // TAP IOCTLs
|
---|
28 | //=============
|
---|
29 |
|
---|
30 | typedef struct
|
---|
31 | {
|
---|
32 | DWORD major;
|
---|
33 | DWORD minor;
|
---|
34 | DWORD debug;
|
---|
35 | } TAP_VERSION;
|
---|
36 |
|
---|
37 | typedef struct
|
---|
38 | {
|
---|
39 | LONG fConnect;
|
---|
40 | } TAP_MEDIASTATUS;
|
---|
41 |
|
---|
42 | #define TAP_CONTROL_CODE(request,method) \
|
---|
43 | CTL_CODE (FILE_DEVICE_UNKNOWN, request, method, FILE_ANY_ACCESS)
|
---|
44 |
|
---|
45 | #define TAP_IOCTL_GET_MAC TAP_CONTROL_CODE (1, METHOD_BUFFERED)
|
---|
46 | #define TAP_IOCTL_GET_VERSION TAP_CONTROL_CODE (2, METHOD_BUFFERED)
|
---|
47 | #define TAP_IOCTL_GET_MTU TAP_CONTROL_CODE (3, METHOD_BUFFERED)
|
---|
48 | #define TAP_IOCTL_GET_INFO TAP_CONTROL_CODE (4, METHOD_BUFFERED)
|
---|
49 | #define TAP_IOCTL_CONFIG_POINT_TO_POINT TAP_CONTROL_CODE (5, METHOD_BUFFERED)
|
---|
50 | #define TAP_IOCTL_SET_MEDIA_STATUS TAP_CONTROL_CODE (6, METHOD_BUFFERED)
|
---|
51 | #define TAP_IOCTL_CONFIG_DHCP_MASQ TAP_CONTROL_CODE (7, METHOD_BUFFERED)
|
---|
52 | #define TAP_IOCTL_GET_LOG_LINE TAP_CONTROL_CODE (8, METHOD_BUFFERED)
|
---|
53 | #define TAP_IOCTL_CONFIG_DHCP_SET_OPT TAP_CONTROL_CODE (9, METHOD_BUFFERED)
|
---|
54 |
|
---|
55 |
|
---|
56 | #endif /* !__VBox_tapwin32_h__ */
|
---|