rndis.h
Go to the documentation of this file.
1 /**
2  * @file rndis.h
3  * @brief RNDIS (Remote Network Driver Interface Specification)
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2010-2020 Oryx Embedded SARL. All rights reserved.
10  *
11  * This file is part of CycloneTCP Open.
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software Foundation,
25  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26  *
27  * @author Oryx Embedded SARL (www.oryx-embedded.com)
28  * @version 1.9.8
29  **/
30 
31 #ifndef _RNDIS_H
32 #define _RNDIS_H
33 
34 //Dependencies
35 #include "core/net.h"
36 #include "error.h"
37 
38 //MAC address
39 #ifndef RNDIS_MAC_ADDR
40  #define RNDIS_MAC_ADDR "02-00-00-12-34-02"
41 #endif
42 
43 //Vendor description
44 #ifndef RNDIS_VENDOR_DESCRIPTION
45  #define RNDIS_VENDOR_DESCRIPTION "Unknown"
46 #endif
47 
48 //RNDIS versions
49 #define RNDIS_MAJOR_VERSION 1
50 #define RNDIS_MINOR_VERSION 0
51 
52 //Maximum transfer size
53 #define RNDIS_MAX_TRANSFER_SIZE 2048
54 
55 //RNDIS message types
56 #define RNDIS_PACKET_MSG 0x00000001
57 #define RNDIS_INITIALIZE_MSG 0x00000002
58 #define RNDIS_INITIALIZE_CMPLT 0x80000002
59 #define RNDIS_HALT_MSG 0x00000003
60 #define RNDIS_QUERY_MSG 0x00000004
61 #define RNDIS_QUERY_CMPLT 0x80000004
62 #define RNDIS_SET_MSG 0x00000005
63 #define RNDIS_SET_CMPLT 0x80000005
64 #define RNDIS_RESET_MSG 0x00000006
65 #define RNDIS_RESET_CMPLT 0x80000006
66 #define RNDIS_INDICATE_STATUS_MSG 0x00000007
67 #define RNDIS_KEEPALIVE_MSG 0x00000008
68 #define RNDIS_KEEPALIVE_CMPLT 0x80000008
69 
70 //RNDIS device notifications
71 #define RNDIS_NOTIFICATION_RESP_AVAILABLE 0x00000001
72 
73 //RNDIS status values
74 #define RNDIS_STATUS_SUCCESS 0x00000000
75 #define RNDIS_STATUS_FAILURE 0xC0000001
76 #define RNDIS_STATUS_INVALID_DATA 0xC0010015
77 #define RNDIS_STATUS_NOT_SUPPORTED 0xC00000BB
78 #define RNDIS_STATUS_MEDIA_CONNECT 0x4001000B
79 #define RNDIS_STATUS_MEDIA_DISCONNECT 0x4001000C
80 
81 //Device flags
82 #define RNDIS_DF_CONNECTIONLESS 0x00000001
83 #define RNDIS_DF_CONNECTION_ORIENTED 0x00000002
84 
85 //Support medium
86 #define RNDIS_MEDIUM_802_3 0x00000000
87 
88 //General objects (required)
89 #define OID_GEN_SUPPORTED_LIST 0x00010101
90 #define OID_GEN_HARDWARE_STATUS 0x00010102
91 #define OID_GEN_MEDIA_SUPPORTED 0x00010103
92 #define OID_GEN_MEDIA_IN_USE 0x00010104
93 #define OID_GEN_MAXIMUM_LOOKAHEAD 0x00010105
94 #define OID_GEN_MAXIMUM_FRAME_SIZE 0x00010106
95 #define OID_GEN_LINK_SPEED 0x00010107
96 #define OID_GEN_TRANSMIT_BUFFER_SPACE 0x00010108
97 #define OID_GEN_RECEIVE_BUFFER_SPACE 0x00010109
98 #define OID_GEN_TRANSMIT_BLOCK_SIZE 0x0001010A
99 #define OID_GEN_RECEIVE_BLOCK_SIZE 0x0001010B
100 #define OID_GEN_VENDOR_ID 0x0001010C
101 #define OID_GEN_VENDOR_DESCRIPTION 0x0001010D
102 #define OID_GEN_CURRENT_PACKET_FILTER 0x0001010E
103 #define OID_GEN_CURRENT_LOOKAHEAD 0x0001010F
104 #define OID_GEN_DRIVER_VERSION 0x00010110
105 #define OID_GEN_MAXIMUM_TOTAL_SIZE 0x00010111
106 #define OID_GEN_PROTOCOL_OPTIONS 0x00010112
107 #define OID_GEN_MAC_OPTIONS 0x00010113
108 #define OID_GEN_MEDIA_CONNECT_STATUS 0x00010114
109 #define OID_GEN_MAXIMUM_SEND_PACKETS 0x00010115
110 #define OID_GEN_VENDOR_DRIVER_VERSION 0x00010116
111 #define OID_GEN_SUPPORTED_GUIDS 0x00010117
112 #define OID_GEN_NETWORK_LAYER_ADDRESSES 0x00010118
113 #define OID_GEN_TRANSPORT_HEADER_OFFSET 0x00010119
114 #define OID_GEN_MACHINE_NAME 0x0001021A
115 #define OID_GEN_RNDIS_CONFIG_PARAMETER 0x0001021B
116 #define OID_GEN_VLAN_ID 0x0001021C
117 
118 //General objects (optional)
119 #define OID_GEN_MEDIA_CAPABILITIES 0x00010201
120 #define OID_GEN_PHYSICAL_MEDIUM 0x00010202
121 
122 //Statistics objects (required)
123 #define OID_GEN_XMIT_OK 0x00020101
124 #define OID_GEN_RCV_OK 0x00020102
125 #define OID_GEN_XMIT_ERROR 0x00020103
126 #define OID_GEN_RCV_ERROR 0x00020104
127 #define OID_GEN_RCV_NO_BUFFER 0x00020105
128 
129 //Statistics objects (optional)
130 #define OID_GEN_DIRECTED_BYTES_XMIT 0x00020201
131 #define OID_GEN_DIRECTED_FRAMES_XMIT 0x00020202
132 #define OID_GEN_MULTICAST_BYTES_XMIT 0x00020203
133 #define OID_GEN_MULTICAST_FRAMES_XMIT 0x00020204
134 #define OID_GEN_BROADCAST_BYTES_XMIT 0x00020205
135 #define OID_GEN_BROADCAST_FRAMES_XMIT 0x00020206
136 #define OID_GEN_DIRECTED_BYTES_RCV 0x00020207
137 #define OID_GEN_DIRECTED_FRAMES_RCV 0x00020208
138 #define OID_GEN_MULTICAST_BYTES_RCV 0x00020209
139 #define OID_GEN_MULTICAST_FRAMES_RCV 0x0002020A
140 #define OID_GEN_BROADCAST_BYTES_RCV 0x0002020B
141 #define OID_GEN_BROADCAST_FRAMES_RCV 0x0002020C
142 #define OID_GEN_RCV_CRC_ERROR 0x0002020D
143 #define OID_GEN_TRANSMIT_QUEUE_LENGTH 0x0002020E
144 
145 //Ethernet objects (required)
146 #define OID_802_3_PERMANENT_ADDRESS 0x01010101
147 #define OID_802_3_CURRENT_ADDRESS 0x01010102
148 #define OID_802_3_MULTICAST_LIST 0x01010103
149 #define OID_802_3_MAXIMUM_LIST_SIZE 0x01010104
150 #define OID_802_3_MAC_OPTIONS 0x01010105
151 #define OID_802_3_RCV_ERROR_ALIGNMENT 0x01020101
152 #define OID_802_3_XMIT_ONE_COLLISION 0x01020102
153 #define OID_802_3_XMIT_MORE_COLLISIONS 0x01020103
154 #define OID_802_3_XMIT_DEFERRED 0x01020201
155 #define OID_802_3_XMIT_MAX_COLLISIONS 0x01020202
156 #define OID_802_3_RCV_OVERRUN 0x01020203
157 #define OID_802_3_XMIT_UNDERRUN 0x01020204
158 #define OID_802_3_XMIT_HEARTBEAT_FAILURE 0x01020205
159 #define OID_802_3_XMIT_TIMES_CRS_LOST 0x01020206
160 #define OID_802_3_XMIT_LATE_COLLISIONS 0x01020207
161 
162 //Hardware status of the underlying NIC
163 #define RNDIS_HARDWARE_STATUS_READY 0x00000000
164 #define RNDIS_HARDWARE_STATUS_INITIALIZING 0x00000001
165 #define RNDIS_HARDWARE_STATUS_RESET 0x00000002
166 #define RNDIS_HARDWARE_STATUS_CLOSING 0x00000003
167 #define RNDIS_HARDWARE_STATUS_NOT_READY 0x00000004
168 
169 //Media types
170 #define RNDIS_MEDIUM_802_3 0x00000000
171 
172 //Media state
173 #define RNDIS_MEDIA_STATE_CONNECTED 0x00000000
174 #define RNDIS_MEDIA_STATE_DISCONNECTED 0x00000001
175 
176 //Packet filter
177 #define RNDIS_PACKET_TYPE_DIRECTED 0x00000001
178 #define RNDIS_PACKET_TYPE_MULTICAST 0x00000002
179 #define RNDIS_PACKET_TYPE_ALL_MULTICAST 0x00000004
180 #define RNDIS_PACKET_TYPE_BROADCAST 0x00000008
181 #define RNDIS_PACKET_TYPE_SOURCE_ROUTING 0x00000010
182 #define RNDIS_PACKET_TYPE_PROMISCUOUS 0x00000020
183 #define RNDIS_PACKET_TYPE_SMT 0x00000040
184 #define RNDIS_PACKET_TYPE_ALL_LOCAL 0x00000080
185 #define RNDIS_PACKET_TYPE_GROUP 0x00000100
186 #define RNDIS_PACKET_TYPE_ALL_FUNCTIONAL 0x00000200
187 #define RNDIS_PACKET_TYPE_FUNCTIONAL 0x00000400
188 #define RNDIS_PACKET_TYPE_MAC_FRAME 0x00000800
189 
190 
191 /**
192  * @brief RNDIS states
193  **/
194 
195 typedef enum
196 {
201 } RndisState;
202 
203 
204 /**
205  * @brief Generic RNDIS message
206  **/
207 
208 typedef struct
209 {
210  uint32_t messageType; //0-3
211  uint32_t messageLength; //4-7
212 } RndisMsg;
213 
214 
215 /**
216  * @brief RNDIS Initialize message
217  **/
218 
219 typedef struct
220 {
221  uint32_t messageType; //0-3
222  uint32_t messageLength; //4-7
223  uint32_t requestId; //8-11
224  uint32_t majorVersion; //12-15
225  uint32_t minorVersion; //16-19
226  uint32_t maxTransferSize; //20-23
228 
229 
230 /**
231  * @brief RNDIS Halt message
232  **/
233 
234 typedef struct
235 {
236  uint32_t messageType; //0-3
237  uint32_t messageLength; //4-7
238  uint32_t requestId; //8-11
239 } RndisHaltMsg;
240 
241 
242 /**
243  * @brief RNDIS Query message
244  **/
245 
246 typedef struct
247 {
248  uint32_t messageType; //0-3
249  uint32_t messageLength; //4-7
250  uint32_t requestId; //8-11
251  uint32_t oid; //12-15
252  uint32_t infoBufferLength; //16-19
253  uint32_t infoBufferOffset; //20-23
254  uint32_t reserved; //24-27
255  uint8_t oidInputBuffer[]; //28
256 } RndisQueryMsg;
257 
258 
259 /**
260  * @brief RNDIS Set message
261  **/
262 
263 typedef struct
264 {
265  uint32_t messageType; //0-3
266  uint32_t messageLength; //4-7
267  uint32_t requestId; //8-11
268  uint32_t oid; //12-15
269  uint32_t infoBufferLength; //16-19
270  uint32_t infoBufferOffset; //20-23
271  uint32_t reserved; //24-27
272  uint8_t oidInputBuffer[]; //28
273 } RndisSetMsg;
274 
275 
276 /**
277  * @brief RNDIS Reset message
278  **/
279 
280 typedef struct
281 {
282  uint32_t messageType; //0-3
283  uint32_t messageLength; //4-7
284  uint32_t reserved; //8-11
285 } RndisResetMsg;
286 
287 
288 /**
289  * @brief RNDIS Indicate Status message
290  **/
291 
292 typedef struct
293 {
294  uint32_t messageType; //0-3
295  uint32_t messageLength; //4-7
296  uint32_t status; //8-11
297  uint32_t statusBufferLength; //12-15
298  uint32_t statusBufferOffset; //16-19
299  uint8_t diagnosticInfoBuffer[]; //20
301 
302 
303 /**
304  * @brief Diagnostic information
305  **/
306 
307 typedef struct
308 {
309  uint32_t diagStatus; //0-3
310  uint32_t errorOffset; //4-7
311 } RndisDiagInfo;
312 
313 
314 /**
315  * @brief RNDIS Keep-Alive message
316  **/
317 
318 typedef struct
319 {
320  uint32_t messageType; //0-3
321  uint32_t messageLength; //4-7
322  uint32_t requestId; //8-11
324 
325 
326 /**
327  * @brief Response to a RNDIS Initialize message
328  **/
329 
330 typedef struct
331 {
332  uint32_t messageType; //0-3
333  uint32_t messageLength; //4-7
334  uint32_t requestId; //8-11
335  uint32_t status; //12-15
336  uint32_t majorVersion; //16-19
337  uint32_t minorVersion; //20-23
338  uint32_t deviceFlags; //24-27
339  uint32_t medium; //28-31
340  uint32_t maxPacketsPerTransfer; //32-35
341  uint32_t maxTransferSize; //36-39
342  uint32_t packetAlignmentFactor; //40-43
343  uint32_t afListOffset; //44-47
344  uint32_t afListSize; //48-51
346 
347 
348 /**
349  * @brief Response to a RNDIS Query message
350  **/
351 
352 typedef struct
353 {
354  uint32_t messageType; //0-3
355  uint32_t messageLength; //4-7
356  uint32_t requestId; //8-11
357  uint32_t status; //12-15
358  uint32_t infoBufferLength; //16-19
359  uint32_t infoBufferOffset; //20-23
360  uint8_t oidInputBuffer[]; //24
362 
363 
364 /**
365  * @brief Response to a RNDIS Set message
366  **/
367 
368 typedef struct
369 {
370  uint32_t messageType; //0-3
371  uint32_t messageLength; //4-7
372  uint32_t requestId; //8-11
373  uint32_t status; //12-15
374 } RndisSetCmplt;
375 
376 
377 /**
378  * @brief Response to a RNDIS Reset message
379  **/
380 
381 typedef struct
382 {
383  uint32_t messageType; //0-3
384  uint32_t messageLength; //4-7
385  uint32_t status; //8-11
386  uint32_t addressingReset; //12-15
388 
389 
390 /**
391  * @brief Response to a RNDIS Keep-Alive message
392  **/
393 
394 typedef struct
395 {
396  uint32_t messageType; //0-3
397  uint32_t messageLength; //4-7
398  uint32_t requestId; //8-11
399  uint32_t status; //12-15
401 
402 
403 /**
404  * @brief RNDIS Packet message
405  **/
406 
407 typedef struct
408 {
409  uint32_t messageType; //0-3
410  uint32_t messageLength; //4-7
411  uint32_t dataOffset; //8-11
412  uint32_t dataLength; //12-15
413  uint32_t oobDataOffset; //16-19
414  uint32_t oobDataLength; //20-23
415  uint32_t numOobDataElements; //24-27
416  uint32_t perPacketInfoOffset; //28-31
417  uint32_t perPacketInfoLength; //32-35
418  uint32_t vcHandle; //36-39
419  uint32_t reserved; //40-43
420  uint8_t payload[]; //44
422 
423 
424 /**
425  * @brief Out-of-band data record
426  **/
427 
428 typedef struct
429 {
430  uint32_t size; //0-3
431  uint32_t type; //4-7
432  uint32_t classInfoOffset; //8-11
433  uint8_t oobData[]; //12
435 
436 
437 /**
438  * @brief Per-packet information data record
439  **/
440 
441 typedef struct
442 {
443  uint32_t size; //0-3
444  uint32_t type; //4-7
445  uint32_t perPacketInfoOffset; //8-11
446  uint8_t perPacketData[]; //12
448 
449 
450 /**
451  * @brief Device notification message
452  **/
453 
454 typedef struct
455 {
456  uint32_t notification; //0-3
457  uint32_t reserved; //4-7
459 
460 
461 /**
462  * @brief RNDIS context
463  **/
464 
465 typedef struct
466 {
472  uint32_t packetFilter;
474  size_t rxBufferLen;
475  uint8_t encapsulatedResp[RNDIS_MAX_TRANSFER_SIZE];
477 
478  uint32_t data[512 / 4];
479  uint8_t CmdOpCode;
480  uint8_t CmdLength;
481 } RndisContext;
482 
483 //Global variables
485 
486 //RNDIS related functions
487 void rndisInit(void);
488 
496 
498 error_t rndisFormatIndicateStatusMsg(uint32_t status);
499 
500 error_t rndisFormatInitializeCmplt(uint32_t requestId);
501 error_t rndisFormatQueryCmplt(uint32_t requestId, uint32_t status, uint32_t length);
502 error_t rndisFormatSetCmplt(uint32_t requestId, uint32_t status);
504 error_t rndisFormatKeepAliveCmplt(uint32_t requestId);
505 
506 error_t rndisSendNotification(uint32_t notification);
507 
508 void rndisChangeState(RndisState newState);
509 
510 #endif
RNDIS Packet message.
Definition: rndis.h:407
uint8_t length
Definition: coap_common.h:190
Response to a RNDIS Initialize message.
Definition: rndis.h:330
uint32_t messageType
Definition: rndis.h:248
uint32_t messageLength
Definition: rndis.h:222
uint32_t messageType
Definition: rndis.h:221
uint32_t messageType
Definition: rndis.h:236
uint32_t messageLength
Definition: rndis.h:384
int bool_t
Definition: compiler_port.h:49
uint32_t status
Definition: rndis.h:357
uint32_t messageType
Definition: rndis.h:370
uint32_t reserved
Definition: rndis.h:271
uint32_t messageLength
Definition: rndis.h:333
uint8_t data[]
Definition: ethernet.h:209
uint8_t CmdOpCode
Definition: rndis.h:479
uint32_t numOobDataElements
Definition: rndis.h:415
size_t encapsulatedRespLen
Definition: rndis.h:476
uint32_t messageType
Definition: rndis.h:320
Out-of-band data record.
Definition: rndis.h:428
uint32_t messageType
Definition: rndis.h:383
RNDIS Query message.
Definition: rndis.h:246
uint32_t dataLength
Definition: rndis.h:412
uint32_t perPacketInfoOffset
Definition: rndis.h:416
error_t rndisFormatHaltMsg(void)
Format RNDIS Halt message.
Definition: rndis.c:473
uint32_t majorVersion
Definition: rndis.h:224
uint32_t size
Definition: rndis.h:430
uint32_t packetFilter
Definition: rndis.h:472
error_t rndisFormatKeepAliveCmplt(uint32_t requestId)
Format RNDIS Keep-Alive Cmplt message.
Definition: rndis.c:657
RNDIS Reset message.
Definition: rndis.h:280
uint32_t messageType
Definition: rndis.h:265
RNDIS Indicate Status message.
Definition: rndis.h:292
uint32_t requestId
Definition: rndis.h:250
error_t rndisProcessSetMsg(const RndisSetMsg *message, size_t length)
Process RNDIS Set message.
Definition: rndis.c:369
RndisState state
Definition: rndis.h:467
uint32_t oid
Definition: rndis.h:268
Response to a RNDIS Query message.
Definition: rndis.h:352
error_t rndisProcessInitializeMsg(const RndisInitializeMsg *message, size_t length)
Process RNDIS Initialize message.
Definition: rndis.c:169
Per-packet information data record.
Definition: rndis.h:441
uint32_t maxPacketsPerTransfer
Definition: rndis.h:340
error_t rndisFormatIndicateStatusMsg(uint32_t status)
Format RNDIS Indicate Status message.
Definition: rndis.c:499
bool_t linkState
Definition: rndis.h:469
Device notification message.
Definition: rndis.h:454
error_t rndisFormatResetCmplt(void)
Format RNDIS Reset Cmplt message.
Definition: rndis.c:627
uint8_t CmdLength
Definition: rndis.h:480
error_t rndisProcessResetMsg(const RndisResetMsg *message, size_t length)
Process RNDIS Reset message.
Definition: rndis.c:418
uint32_t medium
Definition: rndis.h:339
Response to a RNDIS Keep-Alive message.
Definition: rndis.h:394
uint32_t maxTransferSize
Definition: rndis.h:226
uint32_t maxTransferSize
Definition: rndis.h:341
error_t rndisFormatInitializeCmplt(uint32_t requestId)
Format RNDIS Initialize Cmplt message.
Definition: rndis.c:527
error_t
Error codes.
Definition: error.h:42
error_t rndisProcessKeepAliveMsg(const RndisKeepAliveMsg *message, size_t length)
Process RNDIS Keep-Alive message.
Definition: rndis.c:448
uint32_t addressingReset
Definition: rndis.h:386
uint32_t packetAlignmentFactor
Definition: rndis.h:342
uint32_t oobDataLength
Definition: rndis.h:414
uint32_t messageLength
Definition: rndis.h:321
uint32_t messageLength
Definition: rndis.h:237
bool_t txState
Definition: rndis.h:470
RndisState
RNDIS states.
Definition: rndis.h:195
error_t rndisProcessQueryMsg(const RndisQueryMsg *message, size_t length)
Process RNDIS Query message.
Definition: rndis.c:220
Response to a RNDIS Set message.
Definition: rndis.h:368
RNDIS Initialize message.
Definition: rndis.h:219
error_t rndisProcessMsg(const RndisMsg *message, size_t length)
Process incoming RNDIS message.
Definition: rndis.c:111
uint32_t majorVersion
Definition: rndis.h:336
bool_t linkEvent
Definition: rndis.h:468
uint32_t reserved
Definition: rndis.h:284
uint32_t minorVersion
Definition: rndis.h:337
Error codes description.
uint32_t classInfoOffset
Definition: rndis.h:432
error_t rndisProcessHaltMsg(const RndisHaltMsg *message, size_t length)
Process RNDIS Halt message.
Definition: rndis.c:196
uint32_t messageLength
Definition: rndis.h:266
uint32_t dataOffset
Definition: rndis.h:411
void rndisChangeState(RndisState newState)
Update RNDIS state.
Definition: rndis.c:711
Generic RNDIS message.
Definition: rndis.h:208
bool_t rxState
Definition: rndis.h:471
uint32_t messageLength
Definition: rndis.h:371
#define rxBuffer
error_t rndisFormatSetCmplt(uint32_t requestId, uint32_t status)
Format RNDIS Set Cmplt message.
Definition: rndis.c:598
uint32_t diagStatus
Definition: rndis.h:309
uint32_t requestId
Definition: rndis.h:372
uint32_t afListSize
Definition: rndis.h:344
uint32_t messageType
Definition: rndis.h:409
#define RNDIS_MAX_TRANSFER_SIZE
Definition: rndis.h:53
uint32_t messageType
Definition: rndis.h:396
uint32_t infoBufferLength
Definition: rndis.h:269
uint32_t type
Definition: rndis.h:431
uint32_t infoBufferLength
Definition: rndis.h:252
uint32_t deviceFlags
Definition: rndis.h:338
uint32_t requestId
Definition: rndis.h:398
uint32_t messageLength
Definition: rndis.h:355
uint32_t oobDataOffset
Definition: rndis.h:413
RNDIS Set message.
Definition: rndis.h:263
uint32_t reserved
Definition: rndis.h:254
uint32_t minorVersion
Definition: rndis.h:225
uint32_t messageLength
Definition: rndis.h:249
uint32_t vcHandle
Definition: rndis.h:418
uint32_t status
Definition: rndis.h:373
uint32_t notification
Definition: rndis.h:456
error_t rndisFormatQueryCmplt(uint32_t requestId, uint32_t status, uint32_t length)
Format RNDIS Query Cmplt message.
Definition: rndis.c:568
uint32_t perPacketInfoLength
Definition: rndis.h:417
uint32_t requestId
Definition: rndis.h:334
RndisContext rndisContext
Definition: rndis.c:54
uint32_t requestId
Definition: rndis.h:223
uint32_t afListOffset
Definition: rndis.h:343
uint32_t requestId
Definition: rndis.h:322
uint32_t messageType
Definition: rndis.h:282
uint32_t messageLength
Definition: rndis.h:211
uint32_t messageType
Definition: rndis.h:294
uint32_t errorOffset
Definition: rndis.h:310
RNDIS context.
Definition: rndis.h:465
uint32_t reserved
Definition: rndis.h:419
Diagnostic information.
Definition: rndis.h:307
uint8_t message[]
Definition: chap.h:152
uint32_t status
Definition: rndis.h:399
uint32_t messageType
Definition: rndis.h:210
uint32_t requestId
Definition: rndis.h:238
uint32_t messageType
Definition: rndis.h:354
uint32_t infoBufferOffset
Definition: rndis.h:270
uint32_t messageLength
Definition: rndis.h:283
uint32_t reserved
Definition: rndis.h:457
uint32_t requestId
Definition: rndis.h:267
uint32_t messageLength
Definition: rndis.h:295
uint32_t infoBufferOffset
Definition: rndis.h:359
size_t rxBufferLen
Definition: rndis.h:474
uint32_t infoBufferOffset
Definition: rndis.h:253
uint32_t messageType
Definition: rndis.h:332
Response to a RNDIS Reset message.
Definition: rndis.h:381
TCP/IP stack core.
uint32_t messageLength
Definition: rndis.h:410
uint32_t infoBufferLength
Definition: rndis.h:358
uint32_t perPacketInfoOffset
Definition: rndis.h:445
uint32_t status
Definition: rndis.h:335
uint32_t requestId
Definition: rndis.h:356
uint32_t statusBufferLength
Definition: rndis.h:297
RNDIS Keep-Alive message.
Definition: rndis.h:318
error_t rndisSendNotification(uint32_t notification)
Send RNDIS notification message.
Definition: rndis.c:684
uint32_t status
Definition: rndis.h:385
uint32_t messageLength
Definition: rndis.h:397
void rndisInit(void)
RNDIS core initialization.
Definition: rndis.c:89
RNDIS Halt message.
Definition: rndis.h:234
uint32_t statusBufferOffset
Definition: rndis.h:298
uint32_t oid
Definition: rndis.h:251