1 | /* $Id: VBoxNetAdp-win.h 76568 2019-01-01 04:34:11Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxNetAdp-win.h - Host-only Miniport Driver, Windows-specific code.
|
---|
4 | */
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2014-2019 Oracle Corporation
|
---|
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 (GPL) as published by the Free Software
|
---|
12 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
13 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
14 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | *
|
---|
16 | * The contents of this file may alternatively be used under the terms
|
---|
17 | * of the Common Development and Distribution License Version 1.0
|
---|
18 | * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
19 | * VirtualBox OSE distribution, in which case the provisions of the
|
---|
20 | * CDDL are applicable instead of those of the GPL.
|
---|
21 | *
|
---|
22 | * You may elect to license modified versions of this file under the
|
---|
23 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
24 | */
|
---|
25 |
|
---|
26 | #ifndef VBOX_INCLUDED_SRC_VBoxNetAdp_win_VBoxNetAdp_win_h
|
---|
27 | #define VBOX_INCLUDED_SRC_VBoxNetAdp_win_VBoxNetAdp_win_h
|
---|
28 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
29 | # pragma once
|
---|
30 | #endif
|
---|
31 |
|
---|
32 | #define VBOXNETADP_VERSION_NDIS_MAJOR 6
|
---|
33 | #define VBOXNETADP_VERSION_NDIS_MINOR 0
|
---|
34 |
|
---|
35 | #define VBOXNETADP_VERSION_MAJOR 1
|
---|
36 | #define VBOXNETADP_VERSION_MINOR 0
|
---|
37 |
|
---|
38 | #define VBOXNETADP_VENDOR_NAME "Oracle"
|
---|
39 | #define VBOXNETADP_VENDOR_ID 0xFFFFFF
|
---|
40 | #define VBOXNETADP_MCAST_LIST_SIZE 32
|
---|
41 | #define VBOXNETADP_MAX_FRAME_SIZE 1518 // TODO: 14+4+1500
|
---|
42 |
|
---|
43 | //#define VBOXNETADP_NAME_UNIQUE L"{7af6b074-048d-4444-bfce-1ecc8bc5cb76}"
|
---|
44 | #define VBOXNETADP_NAME_SERVICE L"VBoxNetAdp"
|
---|
45 |
|
---|
46 | #define VBOXNETADP_NAME_LINK L"\\DosDevices\\Global\\VBoxNetAdp"
|
---|
47 | #define VBOXNETADP_NAME_DEVICE L"\\Device\\VBoxNetAdp"
|
---|
48 |
|
---|
49 | #define VBOXNETADPWIN_TAG 'ANBV'
|
---|
50 |
|
---|
51 | #define VBOXNETADPWIN_ATTR_FLAGS NDIS_MINIPORT_ATTRIBUTES_NDIS_WDM | NDIS_MINIPORT_ATTRIBUTES_NO_HALT_ON_SUSPEND
|
---|
52 | #define VBOXNETADP_MAC_OPTIONS NDIS_MAC_OPTION_NO_LOOPBACK
|
---|
53 | #define VBOXNETADP_SUPPORTED_FILTERS (NDIS_PACKET_TYPE_DIRECTED | \
|
---|
54 | NDIS_PACKET_TYPE_MULTICAST | \
|
---|
55 | NDIS_PACKET_TYPE_BROADCAST | \
|
---|
56 | NDIS_PACKET_TYPE_PROMISCUOUS | \
|
---|
57 | NDIS_PACKET_TYPE_ALL_MULTICAST)
|
---|
58 | #define VBOXNETADPWIN_SUPPORTED_STATISTICS 0 //TODO!
|
---|
59 | #define VBOXNETADPWIN_HANG_CHECK_TIME 4
|
---|
60 |
|
---|
61 | #endif /* !VBOX_INCLUDED_SRC_VBoxNetAdp_win_VBoxNetAdp_win_h */
|
---|