comctl32/syslink: Fix painting of background color for transparent controls.
[wine/multimedia.git] / include / ipmib.h
blob5bd24d6efbd619889ad8f10bf7e73717dfee913d
1 /*
2 * Copyright (C) 2003 Juan Lang
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.
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.
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
18 #ifndef __WINE_IPMIB_H
19 #define __WINE_IPMIB_H
21 #include <ifmib.h>
22 #include <nldef.h>
25 /* IPADDR table */
27 typedef struct _MIB_IPADDRROW
29 DWORD dwAddr;
30 IF_INDEX dwIndex;
31 DWORD dwMask;
32 DWORD dwBCastAddr;
33 DWORD dwReasmSize;
34 unsigned short unused1;
35 unsigned short wType;
36 } MIB_IPADDRROW, *PMIB_IPADDRROW;
38 typedef struct _MIB_IPADDRTABLE
40 DWORD dwNumEntries;
41 MIB_IPADDRROW table[1];
42 } MIB_IPADDRTABLE, *PMIB_IPADDRTABLE;
45 /* IPFORWARD table */
47 typedef struct _MIB_IPFORWARDNUMBER
49 DWORD dwValue;
50 } MIB_IPFORWARDNUMBER, *PMIB_IPFORWARDNUMBER;
52 typedef enum
54 MIB_IPROUTE_TYPE_OTHER = 1,
55 MIB_IPROUTE_TYPE_INVALID = 2,
56 MIB_IPROUTE_TYPE_DIRECT = 3,
57 MIB_IPROUTE_TYPE_INDIRECT = 4,
58 } MIB_IPFORWARD_TYPE;
60 typedef NL_ROUTE_PROTOCOL MIB_IPFORWARD_PROTO;
62 typedef struct _MIB_IPFORWARDROW
64 DWORD dwForwardDest;
65 DWORD dwForwardMask;
66 DWORD dwForwardPolicy;
67 DWORD dwForwardNextHop;
68 IF_INDEX dwForwardIfIndex;
69 union
71 DWORD dwForwardType;
72 MIB_IPFORWARD_TYPE ForwardType;
73 } DUMMYUNIONNAME1;
74 union
76 DWORD dwForwardProto;
77 MIB_IPFORWARD_PROTO ForwardProto;
78 } DUMMYUNIONNAME2;
79 DWORD dwForwardAge;
80 DWORD dwForwardNextHopAS;
81 DWORD dwForwardMetric1;
82 DWORD dwForwardMetric2;
83 DWORD dwForwardMetric3;
84 DWORD dwForwardMetric4;
85 DWORD dwForwardMetric5;
86 } MIB_IPFORWARDROW, *PMIB_IPFORWARDROW;
88 typedef struct _MIB_IPFORWARDTABLE
90 DWORD dwNumEntries;
91 MIB_IPFORWARDROW table[1];
92 } MIB_IPFORWARDTABLE, *PMIB_IPFORWARDTABLE;
95 /* IPNET table */
97 typedef enum
99 MIB_IPNET_TYPE_OTHER = 1,
100 MIB_IPNET_TYPE_INVALID = 2,
101 MIB_IPNET_TYPE_DYNAMIC = 3,
102 MIB_IPNET_TYPE_STATIC = 4,
103 } MIB_IPNET_TYPE;
105 typedef struct _MIB_IPNETROW
107 DWORD dwIndex;
108 DWORD dwPhysAddrLen;
109 BYTE bPhysAddr[MAXLEN_PHYSADDR];
110 DWORD dwAddr;
111 union
113 DWORD dwType;
114 MIB_IPNET_TYPE Type;
115 } DUMMYUNIONNAME;
116 } MIB_IPNETROW, *PMIB_IPNETROW;
118 typedef struct _MIB_IPNETTABLE
120 DWORD dwNumEntries;
121 MIB_IPNETROW table[1];
122 } MIB_IPNETTABLE, *PMIB_IPNETTABLE;
125 /* IP statistics */
127 typedef enum
129 MIB_IP_FORWARDING = 1,
130 MIB_IP_NOT_FORWARDING = 2,
131 } MIB_IPSTATS_FORWARDING, *PMIB_IPSTATS_FORWARDING;
133 typedef struct _MIB_IPSTATS
135 union
137 DWORD dwForwarding;
138 MIB_IPSTATS_FORWARDING Forwarding;
139 } DUMMYUNIONNAME;
140 DWORD dwDefaultTTL;
141 DWORD dwInReceives;
142 DWORD dwInHdrErrors;
143 DWORD dwInAddrErrors;
144 DWORD dwForwDatagrams;
145 DWORD dwInUnknownProtos;
146 DWORD dwInDiscards;
147 DWORD dwInDelivers;
148 DWORD dwOutRequests;
149 DWORD dwRoutingDiscards;
150 DWORD dwOutDiscards;
151 DWORD dwOutNoRoutes;
152 DWORD dwReasmTimeout;
153 DWORD dwReasmReqds;
154 DWORD dwReasmOks;
155 DWORD dwReasmFails;
156 DWORD dwFragOks;
157 DWORD dwFragFails;
158 DWORD dwFragCreates;
159 DWORD dwNumIf;
160 DWORD dwNumAddr;
161 DWORD dwNumRoutes;
162 } MIB_IPSTATS, *PMIB_IPSTATS;
165 /* ICMP statistics */
167 typedef struct _MIBICMPSTATS
169 DWORD dwMsgs;
170 DWORD dwErrors;
171 DWORD dwDestUnreachs;
172 DWORD dwTimeExcds;
173 DWORD dwParmProbs;
174 DWORD dwSrcQuenchs;
175 DWORD dwRedirects;
176 DWORD dwEchos;
177 DWORD dwEchoReps;
178 DWORD dwTimestamps;
179 DWORD dwTimestampReps;
180 DWORD dwAddrMasks;
181 DWORD dwAddrMaskReps;
182 } MIBICMPSTATS, *PMIBICMPSTATS;
184 typedef struct _MIBICMPINFO
186 MIBICMPSTATS icmpInStats;
187 MIBICMPSTATS icmpOutStats;
188 } MIBICMPINFO;
190 typedef struct _MIB_ICMP
192 MIBICMPINFO stats;
193 } MIB_ICMP, *PMIB_ICMP;
195 #endif /* __WINE_IPMIB_H */