77{
83
85 copySource = &genericUlong;
86 copyLength =
sizeof(
ULONG);
87
89
90 switch (Oid)
91 {
95 break;
96
98 genericUlong =
adapter->PacketFilter;
99 break;
100
103 break;
104
107 {
109 copySource = (
PVOID)&medium;
110 copyLength = sizeof(medium);
111 break;
112 }
113
120 break;
121
123 genericUlong =
adapter->LinkSpeedMbps * 1000;
124 break;
125
128 break;
129
132 break;
133
135
136
137
138 genericUlong = 0;
139 genericUlong |= (
adapter->PermanentMacAddress[0] << 16);
140 genericUlong |= (
adapter->PermanentMacAddress[1] << 8);
141 genericUlong |= (
adapter->PermanentMacAddress[2] & 0xFF);
142 break;
143
145 {
146 static UCHAR vendorDesc[] =
"ReactOS Team";
147 copySource = vendorDesc;
148 copyLength = sizeof(vendorDesc);
149 break;
150 }
151
154 break;
155
157 {
158 static const USHORT driverVersion =
159 (NDIS_MINIPORT_MAJOR_VERSION << 8) + NDIS_MINIPORT_MINOR_VERSION;
160 copySource = (
PVOID)&driverVersion;
161 copyLength = sizeof(driverVersion);
162 break;
163 }
164
167 break;
168
172 break;
173
179 break;
180
182 genericUlong =
adapter->MediaState;
183 break;
184
186 genericUlong = 1;
187 break;
188
190 copySource =
adapter->CurrentMacAddress;
192 break;
193
195 copySource =
adapter->PermanentMacAddress;
197 break;
198
201 break;
202
204 genericUlong =
adapter->TransmitOk;
205 break;
206
208 genericUlong =
adapter->ReceiveOk;
209 break;
210
212 genericUlong =
adapter->TransmitError;
213 break;
214
216 genericUlong =
adapter->ReceiveError;
217 break;
218
220 genericUlong =
adapter->ReceiveNoBufferSpace;
221 break;
222
224 genericUlong =
adapter->ReceiveCrcError;
225 break;
226
228 genericUlong =
adapter->ReceiveAlignmentError;
229 break;
230
232 genericUlong =
adapter->TransmitOneCollision;
233 break;
234
236 genericUlong =
adapter->TransmitMoreCollisions;
237 break;
238
239 default:
242 break;
243 }
244
246 {
247 if (copyLength > InformationBufferLength)
248 {
249 *BytesNeeded = copyLength;
252 }
253 else
254 {
257 *BytesNeeded = copyLength;
258 }
259 }
260 else
261 {
263 *BytesNeeded = 0;
264 }
265
267
270
272}
#define NDIS_DbgPrint(_t_, _x_)
static NDIS_OID SupportedOidList[]
#define MAXIMUM_FRAME_SIZE
#define RECEIVE_BUFFER_SIZE
#define MAXIMUM_MULTICAST_ADDRESSES
#define IEEE_802_ADDR_LENGTH
#define NdisReleaseSpinLock(_SpinLock)
#define NDIS_STATUS_NOT_SUPPORTED
#define NDIS_STATUS_INVALID_LENGTH
#define NDIS_MAC_OPTION_TRANSFERS_NOT_PEND
#define NDIS_MAC_OPTION_RECEIVE_SERIALIZED
#define NDIS_STATUS_SUCCESS
#define NDIS_MAC_OPTION_NO_LOOPBACK
#define NDIS_MAC_OPTION_COPY_LOOKAHEAD_DATA
#define NdisAcquireSpinLock(_SpinLock)
#define NdisMoveMemory(Destination, Source, Length)
enum _NDIS_MEDIUM NDIS_MEDIUM
#define OID_GEN_TRANSMIT_BLOCK_SIZE
#define OID_GEN_PROTOCOL_OPTIONS
#define OID_GEN_MAXIMUM_TOTAL_SIZE
#define OID_GEN_XMIT_ERROR
#define OID_GEN_VENDOR_DRIVER_VERSION
#define OID_802_3_PERMANENT_ADDRESS
#define OID_GEN_LINK_SPEED
#define OID_GEN_VENDOR_ID
#define OID_GEN_CURRENT_PACKET_FILTER
#define OID_GEN_RCV_NO_BUFFER
#define OID_802_3_XMIT_ONE_COLLISION
#define OID_802_3_XMIT_MORE_COLLISIONS
#define OID_GEN_RECEIVE_BUFFER_SPACE
#define OID_802_3_MAXIMUM_LIST_SIZE
#define OID_GEN_DRIVER_VERSION
#define OID_802_3_CURRENT_ADDRESS
#define OID_GEN_TRANSMIT_BUFFER_SPACE
#define OID_GEN_MEDIA_SUPPORTED
#define OID_GEN_MAXIMUM_FRAME_SIZE
#define OID_GEN_RCV_CRC_ERROR
#define OID_GEN_MEDIA_IN_USE
#define OID_GEN_MEDIA_CONNECT_STATUS
#define OID_GEN_MAXIMUM_LOOKAHEAD
#define OID_802_3_RCV_ERROR_ALIGNMENT
#define OID_GEN_RCV_ERROR
@ NdisHardwareStatusReady
#define OID_GEN_CURRENT_LOOKAHEAD
#define OID_GEN_MAC_OPTIONS
#define OID_GEN_VENDOR_DESCRIPTION
#define OID_GEN_SUPPORTED_LIST
#define OID_GEN_RECEIVE_BLOCK_SIZE
#define OID_GEN_MAXIMUM_SEND_PACKETS
#define OID_GEN_HARDWARE_STATUS
struct _RTL_ADAPTER * PRTL_ADAPTER
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PLONGLONG _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_opt_ PULONG_PTR BytesWritten