rndis_debug.h
Go to the documentation of this file.
1 /**
2  * @file rndis_debug.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-2024 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 2.4.0
29  **/
30 
31 #ifndef _RNDIS_DEBUG_H
32 #define _RNDIS_DEBUG_H
33 
34 //Dependencies
35 #include "rndis.h"
36 
37 
38 /**
39  * @brief Value/name pair
40  **/
41 
42 typedef struct
43 {
44  uint32_t value;
45  const char_t *name;
47 
48 
49 //RNDIS related functions
59 
65 
66 const char_t *rndisFindName(uint32_t value, const RndisValueName *table, size_t size);
67 
68 #endif
uint8_t message[]
Definition: chap.h:154
char char_t
Definition: compiler_port.h:48
error_t
Error codes.
Definition: error.h:43
RNDIS (Remote Network Driver Interface Specification)
error_t rndisDumpSetMsg(const RndisSetMsg *message, size_t length)
Dump REMOTE_NDIS_SET_MSG message.
Definition: rndis_debug.c:339
error_t rndisDumpResetCmplt(const RndisResetCmplt *message, size_t length)
Dump REMOTE_NDIS_RESET_CMPLT message.
Definition: rndis_debug.c:596
error_t rndisDumpHaltMsg(const RndisHaltMsg *message, size_t length)
Dump REMOTE_NDIS_HALT_MSG message.
Definition: rndis_debug.c:273
error_t rndisDumpInitializeMsg(const RndisInitializeMsg *message, size_t length)
Dump REMOTE_NDIS_INITIALIZE_MSG message.
Definition: rndis_debug.c:249
error_t rndisDumpInitializeCmplt(const RndisInitializeCmplt *message, size_t length)
Dump REMOTE_NDIS_INITIALIZE_CMPLT message.
Definition: rndis_debug.c:481
error_t rndisDumpMsg(const RndisMsg *message, size_t length)
Dump RNDIS message for debugging purpose.
Definition: rndis_debug.c:124
error_t rndisDumpKeepAliveMsg(const RndisKeepAliveMsg *message, size_t length)
Dump REMOTE_NDIS_KEEPALIVE_MSG message.
Definition: rndis_debug.c:460
const char_t * rndisFindName(uint32_t value, const RndisValueName *table, size_t size)
Helper function.
Definition: rndis_debug.c:659
error_t rndisDumpSetCmplt(const RndisSetCmplt *message, size_t length)
Dump REMOTE_NDIS_SET_CMPLT message.
Definition: rndis_debug.c:565
error_t rndisDumpQueryMsg(const RndisQueryMsg *message, size_t length)
Dump REMOTE_NDIS_QUERY_MSG message.
Definition: rndis_debug.c:294
error_t rndisDumpPacketMsg(const RndisPacketMsg *message, size_t length)
Dump REMOTE_NDIS_PACKET_MSG message.
Definition: rndis_debug.c:220
error_t rndisDumpResetMsg(const RndisResetMsg *message, size_t length)
Dump REMOTE_NDIS_RESET_MSG message.
Definition: rndis_debug.c:384
error_t rndisDumpQueryCmplt(const RndisQueryCmplt *message, size_t length)
Dump REMOTE_NDIS_QUERY_CMPLT message.
Definition: rndis_debug.c:521
error_t rndisDumpIndicateStatusMsg(const RndisIndicateStatusMsg *message, size_t length)
Dump REMOTE_NDIS_INDICATE_STATUS_MSG message.
Definition: rndis_debug.c:405
error_t rndisDumpKeepAliveCmplt(const RndisKeepAliveCmplt *message, size_t length)
Dump REMOTE_NDIS_KEEPALIVE_CMPLT message.
Definition: rndis_debug.c:627
RNDIS Halt message.
Definition: rndis.h:235
RNDIS Indicate Status message.
Definition: rndis.h:293
Response to a RNDIS Initialize message.
Definition: rndis.h:331
RNDIS Initialize message.
Definition: rndis.h:220
Response to a RNDIS Keep-Alive message.
Definition: rndis.h:395
RNDIS Keep-Alive message.
Definition: rndis.h:319
Generic RNDIS message.
Definition: rndis.h:209
RNDIS Packet message.
Definition: rndis.h:408
Response to a RNDIS Query message.
Definition: rndis.h:353
RNDIS Query message.
Definition: rndis.h:247
Response to a RNDIS Reset message.
Definition: rndis.h:382
RNDIS Reset message.
Definition: rndis.h:281
Response to a RNDIS Set message.
Definition: rndis.h:369
RNDIS Set message.
Definition: rndis.h:264
Value/name pair.
Definition: rndis_debug.h:43
const char_t * name
Definition: rndis_debug.h:45
uint32_t value
Definition: rndis_debug.h:44
uint8_t length
Definition: tcp.h:368
uint8_t value[]
Definition: tcp.h:369