ReactOS 0.4.16-dev-300-g2aadf2e
ipmib.h
Go to the documentation of this file.
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#ifndef __WINE_IPMIB_H
19#define __WINE_IPMIB_H
20
21#include <ifmib.h>
22#include <nldef.h>
23
24/* Flags used in the wType field from MIB_IPADDRROW */
25
26#define MIB_IPADDR_PRIMARY 0x0001
27#define MIB_IPADDR_DYNAMIC 0x0004
28#define MIB_IPADDR_DISCONNECTED 0x0008
29#define MIB_IPADDR_DELETED 0x0040
30#define MIB_IPADDR_TRANSIENT 0x0080
31
32/* IPADDR table */
33
34typedef struct _MIB_IPADDRROW
35{
41 unsigned short unused1;
42 unsigned short wType;
44
45typedef struct _MIB_IPADDRTABLE
46{
50
51
52/* IPFORWARD table */
53
55{
58
59typedef enum
60{
66
68
69typedef struct _MIB_IPFORWARDROW
70{
76 union
77 {
81 union
82 {
94
95typedef struct _MIB_IPFORWARDTABLE
96{
100
101
102/* IPNET table */
103
104typedef enum
105{
111
112typedef struct _MIB_IPNETROW
113{
118 union
119 {
124
125typedef struct _MIB_IPNETTABLE
126{
130
131
132/* IP statistics */
133
134typedef enum
135{
139
140typedef struct _MIB_IPSTATS
141{
142 union
143 {
170
171
172/* ICMP statistics */
173
174typedef struct _MIBICMPSTATS
175{
190
191typedef struct _MIBICMPINFO
192{
196
197typedef struct _MIB_ICMP
198{
201
202typedef enum
203{
218
219typedef enum
220{
237
238typedef struct _MIBICMPSTATS_EX
239{
244
245typedef struct _MIB_ICMP_EX
246{
250
251#endif /* __WINE_IPMIB_H */
unsigned long DWORD
Definition: ntddk_ex.h:95
NET_IFINDEX IF_INDEX
Definition: ifdef.h:27
#define MAXLEN_PHYSADDR
Definition: ifmib.h:32
enum MIB_IPSTATS_FORWARDING * PMIB_IPSTATS_FORWARDING
struct _MIBICMPINFO MIBICMPINFO
struct _MIB_IPSTATS MIB_IPSTATS
struct _MIB_ICMP * PMIB_ICMP
struct _MIB_ICMP MIB_ICMP
struct _MIBICMPSTATS_EX * PMIBICMPSTATS_EX
struct _MIB_IPFORWARDTABLE * PMIB_IPFORWARDTABLE
MIB_IPFORWARD_TYPE
Definition: ipmib.h:60
@ MIB_IPROUTE_TYPE_OTHER
Definition: ipmib.h:61
@ MIB_IPROUTE_TYPE_DIRECT
Definition: ipmib.h:63
@ MIB_IPROUTE_TYPE_INDIRECT
Definition: ipmib.h:64
@ MIB_IPROUTE_TYPE_INVALID
Definition: ipmib.h:62
struct _MIB_IPNETTABLE * PMIB_IPNETTABLE
struct _MIB_ICMP_EX * PMIB_ICMP_EX
struct _MIB_IPNETROW MIB_IPNETROW
MIB_IPNET_TYPE
Definition: ipmib.h:105
@ MIB_IPNET_TYPE_DYNAMIC
Definition: ipmib.h:108
@ MIB_IPNET_TYPE_INVALID
Definition: ipmib.h:107
@ MIB_IPNET_TYPE_STATIC
Definition: ipmib.h:109
@ MIB_IPNET_TYPE_OTHER
Definition: ipmib.h:106
struct _MIB_IPADDRROW MIB_IPADDRROW
struct _MIB_IPFORWARDTABLE MIB_IPFORWARDTABLE
ICMP4_TYPE
Definition: ipmib.h:203
@ ICMP4_SOURCE_QUENCH
Definition: ipmib.h:206
@ ICMP4_TIMESTAMP_REPLY
Definition: ipmib.h:214
@ ICMP4_MASK_REPLY
Definition: ipmib.h:216
@ ICMP4_ROUTER_ADVERT
Definition: ipmib.h:209
@ ICMP4_ROUTER_SOLICIT
Definition: ipmib.h:210
@ ICMP4_TIMESTAMP_REQUEST
Definition: ipmib.h:213
@ ICMP4_MASK_REQUEST
Definition: ipmib.h:215
@ ICMP4_REDIRECT
Definition: ipmib.h:207
@ ICMP4_ECHO_REPLY
Definition: ipmib.h:204
@ ICMP4_TIME_EXCEEDED
Definition: ipmib.h:211
@ ICMP4_ECHO_REQUEST
Definition: ipmib.h:208
@ ICMP4_PARAM_PROB
Definition: ipmib.h:212
@ ICMP4_DST_UNREACH
Definition: ipmib.h:205
struct _MIB_IPADDRTABLE MIB_IPADDRTABLE
struct _MIBICMPSTATS_EX MIBICMPSTATS_EX
struct _MIB_IPNETROW * PMIB_IPNETROW
struct _MIB_IPNETTABLE MIB_IPNETTABLE
struct _MIB_ICMP_EX MIB_ICMP_EX
struct _MIB_IPFORWARDROW * PMIB_IPFORWARDROW
struct _MIB_IPFORWARDROW MIB_IPFORWARDROW
struct _MIB_IPFORWARDNUMBER MIB_IPFORWARDNUMBER
struct _MIB_IPSTATS * PMIB_IPSTATS
struct _MIBICMPSTATS * PMIBICMPSTATS
struct _MIBICMPSTATS MIBICMPSTATS
MIB_IPSTATS_FORWARDING
Definition: ipmib.h:135
@ MIB_IP_NOT_FORWARDING
Definition: ipmib.h:137
@ MIB_IP_FORWARDING
Definition: ipmib.h:136
enum ICMP6_TYPE * PICMP6_TYPE
NL_ROUTE_PROTOCOL MIB_IPFORWARD_PROTO
Definition: ipmib.h:67
ICMP6_TYPE
Definition: ipmib.h:220
@ ICMP6_DST_UNREACH
Definition: ipmib.h:221
@ ICMP6_ECHO_REPLY
Definition: ipmib.h:226
@ ND_REDIRECT
Definition: ipmib.h:234
@ ND_NEIGHBOR_ADVERT
Definition: ipmib.h:233
@ ICMP6_TIME_EXCEEDED
Definition: ipmib.h:223
@ ICMP6_PARAM_PROB
Definition: ipmib.h:224
@ ND_ROUTER_ADVERT
Definition: ipmib.h:231
@ ICMP6_MEMBERSHIP_REPORT
Definition: ipmib.h:228
@ ND_ROUTER_SOLICIT
Definition: ipmib.h:230
@ ICMP6_MEMBERSHIP_REDUCTION
Definition: ipmib.h:229
@ ICMP6_MEMBERSHIP_QUERY
Definition: ipmib.h:227
@ ICMP6_ECHO_REQUEST
Definition: ipmib.h:225
@ ICMP6_PACKET_TOO_BIG
Definition: ipmib.h:222
@ ND_NEIGHBOR_SOLICIT
Definition: ipmib.h:232
@ ICMP6_V2_MEMBERSHIP_REPORT
Definition: ipmib.h:235
enum ICMP4_TYPE * PICMP4_TYPE
struct _MIB_IPADDRTABLE * PMIB_IPADDRTABLE
struct _MIB_IPADDRROW * PMIB_IPADDRROW
struct _MIB_IPFORWARDNUMBER * PMIB_IPFORWARDNUMBER
NL_ROUTE_PROTOCOL
Definition: nldef.h:56
MIBICMPSTATS icmpOutStats
Definition: ipmib.h:194
MIBICMPSTATS icmpInStats
Definition: ipmib.h:193
DWORD dwMsgs
Definition: ipmib.h:240
DWORD rgdwTypeCount[256]
Definition: ipmib.h:242
DWORD dwErrors
Definition: ipmib.h:241
DWORD dwTimeExcds
Definition: ipmib.h:179
DWORD dwAddrMasks
Definition: ipmib.h:187
DWORD dwEchoReps
Definition: ipmib.h:184
DWORD dwParmProbs
Definition: ipmib.h:180
DWORD dwAddrMaskReps
Definition: ipmib.h:188
DWORD dwSrcQuenchs
Definition: ipmib.h:181
DWORD dwTimestamps
Definition: ipmib.h:185
DWORD dwRedirects
Definition: ipmib.h:182
DWORD dwMsgs
Definition: ipmib.h:176
DWORD dwErrors
Definition: ipmib.h:177
DWORD dwEchos
Definition: ipmib.h:183
DWORD dwTimestampReps
Definition: ipmib.h:186
DWORD dwDestUnreachs
Definition: ipmib.h:178
MIBICMPSTATS_EX icmpOutStats
Definition: ipmib.h:248
MIBICMPSTATS_EX icmpInStats
Definition: ipmib.h:247
MIBICMPINFO stats
Definition: ipmib.h:199
unsigned short unused1
Definition: ipmib.h:41
DWORD dwReasmSize
Definition: ipmib.h:40
DWORD dwBCastAddr
Definition: ipmib.h:39
DWORD dwMask
Definition: ipmib.h:38
DWORD dwAddr
Definition: ipmib.h:36
IF_INDEX dwIndex
Definition: ipmib.h:37
unsigned short wType
Definition: ipmib.h:42
DWORD dwNumEntries
Definition: ipmib.h:47
union _MIB_IPFORWARDROW::@3000 DUMMYUNIONNAME1
DWORD dwForwardMetric5
Definition: ipmib.h:92
DWORD dwForwardNextHop
Definition: ipmib.h:74
DWORD dwForwardMetric2
Definition: ipmib.h:89
MIB_IPFORWARD_PROTO ForwardProto
Definition: ipmib.h:84
DWORD dwForwardPolicy
Definition: ipmib.h:73
DWORD dwForwardMetric3
Definition: ipmib.h:90
DWORD dwForwardProto
Definition: ipmib.h:83
DWORD dwForwardMetric1
Definition: ipmib.h:88
IF_INDEX dwForwardIfIndex
Definition: ipmib.h:75
DWORD dwForwardNextHopAS
Definition: ipmib.h:87
DWORD dwForwardDest
Definition: ipmib.h:71
MIB_IPFORWARD_TYPE ForwardType
Definition: ipmib.h:79
DWORD dwForwardMask
Definition: ipmib.h:72
union _MIB_IPFORWARDROW::@3001 DUMMYUNIONNAME2
DWORD dwForwardMetric4
Definition: ipmib.h:91
DWORD dwForwardAge
Definition: ipmib.h:86
DWORD dwForwardType
Definition: ipmib.h:78
DWORD dwNumEntries
Definition: ipmib.h:97
DWORD dwPhysAddrLen
Definition: ipmib.h:115
BYTE bPhysAddr[MAXLEN_PHYSADDR]
Definition: ipmib.h:116
DWORD dwAddr
Definition: ipmib.h:117
DWORD dwType
Definition: ipmib.h:120
union _MIB_IPNETROW::@3002 DUMMYUNIONNAME
DWORD dwIndex
Definition: ipmib.h:114
MIB_IPNET_TYPE Type
Definition: ipmib.h:121
DWORD dwNumEntries
Definition: ipmib.h:127
DWORD dwInReceives
Definition: ipmib.h:148
DWORD dwInAddrErrors
Definition: ipmib.h:150
DWORD dwFragOks
Definition: ipmib.h:163
DWORD dwReasmOks
Definition: ipmib.h:161
DWORD dwOutNoRoutes
Definition: ipmib.h:158
union _MIB_IPSTATS::@3003 DUMMYUNIONNAME
DWORD dwNumIf
Definition: ipmib.h:166
DWORD dwInDelivers
Definition: ipmib.h:154
DWORD dwRoutingDiscards
Definition: ipmib.h:156
DWORD dwReasmReqds
Definition: ipmib.h:160
DWORD dwOutDiscards
Definition: ipmib.h:157
DWORD dwInHdrErrors
Definition: ipmib.h:149
DWORD dwDefaultTTL
Definition: ipmib.h:147
DWORD dwForwDatagrams
Definition: ipmib.h:151
DWORD dwNumAddr
Definition: ipmib.h:167
DWORD dwReasmTimeout
Definition: ipmib.h:159
DWORD dwInDiscards
Definition: ipmib.h:153
DWORD dwNumRoutes
Definition: ipmib.h:168
DWORD dwOutRequests
Definition: ipmib.h:155
DWORD dwFragCreates
Definition: ipmib.h:165
DWORD dwInUnknownProtos
Definition: ipmib.h:152
MIB_IPSTATS_FORWARDING Forwarding
Definition: ipmib.h:145
DWORD dwForwarding
Definition: ipmib.h:144
DWORD dwReasmFails
Definition: ipmib.h:162
DWORD dwFragFails
Definition: ipmib.h:164
unsigned char BYTE
Definition: xxhash.c:193