1 | /*
|
---|
2 | * Copyright (C) 2003 Juan Lang
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __WINE_IFMIB_H
|
---|
29 | #define __WINE_IFMIB_H
|
---|
30 |
|
---|
31 | #include <ifdef.h>
|
---|
32 |
|
---|
33 | typedef struct _MIB_IFNUMBER
|
---|
34 | {
|
---|
35 | DWORD dwValue;
|
---|
36 | } MIB_IFNUMBER, *PMIB_IFNUMBER;
|
---|
37 |
|
---|
38 |
|
---|
39 | /* Interface table */
|
---|
40 |
|
---|
41 | #define MAX_INTERFACE_NAME_LEN 256
|
---|
42 | #define MAXLEN_PHYSADDR 8
|
---|
43 | #define MAXLEN_IFDESCR 256
|
---|
44 |
|
---|
45 | typedef struct _MIB_IFROW
|
---|
46 | {
|
---|
47 | WCHAR wszName[MAX_INTERFACE_NAME_LEN];
|
---|
48 | DWORD dwIndex;
|
---|
49 | DWORD dwType;
|
---|
50 | DWORD dwMtu;
|
---|
51 | DWORD dwSpeed;
|
---|
52 | DWORD dwPhysAddrLen;
|
---|
53 | UCHAR bPhysAddr[MAXLEN_PHYSADDR];
|
---|
54 | DWORD dwAdminStatus;
|
---|
55 | INTERNAL_IF_OPER_STATUS dwOperStatus;
|
---|
56 | DWORD dwLastChange;
|
---|
57 | DWORD dwInOctets;
|
---|
58 | DWORD dwInUcastPkts;
|
---|
59 | DWORD dwInNUcastPkts;
|
---|
60 | DWORD dwInDiscards;
|
---|
61 | DWORD dwInErrors;
|
---|
62 | DWORD dwInUnknownProtos;
|
---|
63 | DWORD dwOutOctets;
|
---|
64 | DWORD dwOutUcastPkts;
|
---|
65 | DWORD dwOutNUcastPkts;
|
---|
66 | DWORD dwOutDiscards;
|
---|
67 | DWORD dwOutErrors;
|
---|
68 | DWORD dwOutQLen;
|
---|
69 | DWORD dwDescrLen;
|
---|
70 | BYTE bDescr[MAXLEN_IFDESCR];
|
---|
71 | } MIB_IFROW, *PMIB_IFROW;
|
---|
72 |
|
---|
73 | typedef struct _MIB_IFTABLE
|
---|
74 | {
|
---|
75 | DWORD dwNumEntries;
|
---|
76 | MIB_IFROW table[1];
|
---|
77 | } MIB_IFTABLE, *PMIB_IFTABLE;
|
---|
78 |
|
---|
79 |
|
---|
80 | #endif /* __WINE_IFMIB_H */
|
---|