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-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_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
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
error_t rndisDumpInitializeCmplt(const RndisInitializeCmplt *message, size_t length)
Dump REMOTE_NDIS_INITIALIZE_CMPLT message.
Definition: rndis_debug.c:481
error_t rndisDumpQueryMsg(const RndisQueryMsg *message, size_t length)
Dump REMOTE_NDIS_QUERY_MSG message.
Definition: rndis_debug.c:294
RNDIS Query message.
Definition: rndis.h:246
error_t rndisDumpQueryCmplt(const RndisQueryCmplt *message, size_t length)
Dump REMOTE_NDIS_QUERY_CMPLT message.
Definition: rndis_debug.c:521
error_t rndisDumpKeepAliveMsg(const RndisKeepAliveMsg *message, size_t length)
Dump REMOTE_NDIS_KEEPALIVE_MSG message.
Definition: rndis_debug.c:460
RNDIS Reset message.
Definition: rndis.h:280
RNDIS Indicate Status message.
Definition: rndis.h:292
Response to a RNDIS Query message.
Definition: rndis.h:352
const char_t * rndisFindName(uint32_t value, const RndisValueName *table, size_t size)
Helper function.
Definition: rndis_debug.c:659
Response to a RNDIS Keep-Alive message.
Definition: rndis.h:394
uint32_t value
Definition: rndis_debug.h:44
error_t
Error codes.
Definition: error.h:42
uint8_t value[]
Definition: tcp.h:332
Response to a RNDIS Set message.
Definition: rndis.h:368
RNDIS Initialize message.
Definition: rndis.h:219
error_t rndisDumpHaltMsg(const RndisHaltMsg *message, size_t length)
Dump REMOTE_NDIS_HALT_MSG message.
Definition: rndis_debug.c:273
Generic RNDIS message.
Definition: rndis.h:208
error_t rndisDumpResetMsg(const RndisResetMsg *message, size_t length)
Dump REMOTE_NDIS_RESET_MSG message.
Definition: rndis_debug.c:384
error_t rndisDumpResetCmplt(const RndisResetCmplt *message, size_t length)
Dump REMOTE_NDIS_RESET_CMPLT message.
Definition: rndis_debug.c:596
char char_t
Definition: compiler_port.h:43
RNDIS (Remote Network Driver Interface Specification)
RNDIS Set message.
Definition: rndis.h:263
Value/name pair.
Definition: rndis_debug.h:42
error_t rndisDumpKeepAliveCmplt(const RndisKeepAliveCmplt *message, size_t length)
Dump REMOTE_NDIS_KEEPALIVE_CMPLT message.
Definition: rndis_debug.c:627
error_t rndisDumpSetCmplt(const RndisSetCmplt *message, size_t length)
Dump REMOTE_NDIS_SET_CMPLT message.
Definition: rndis_debug.c:565
error_t rndisDumpMsg(const RndisMsg *message, size_t length)
Dump RNDIS message for debugging purpose.
Definition: rndis_debug.c:124
uint8_t message[]
Definition: chap.h:152
error_t rndisDumpPacketMsg(const RndisPacketMsg *message, size_t length)
Dump REMOTE_NDIS_PACKET_MSG message.
Definition: rndis_debug.c:220
const char_t * name
Definition: rndis_debug.h:45
error_t rndisDumpIndicateStatusMsg(const RndisIndicateStatusMsg *message, size_t length)
Dump REMOTE_NDIS_INDICATE_STATUS_MSG message.
Definition: rndis_debug.c:405
Response to a RNDIS Reset message.
Definition: rndis.h:381
error_t rndisDumpInitializeMsg(const RndisInitializeMsg *message, size_t length)
Dump REMOTE_NDIS_INITIALIZE_MSG message.
Definition: rndis_debug.c:249
error_t rndisDumpSetMsg(const RndisSetMsg *message, size_t length)
Dump REMOTE_NDIS_SET_MSG message.
Definition: rndis_debug.c:339
RNDIS Keep-Alive message.
Definition: rndis.h:318
RNDIS Halt message.
Definition: rndis.h:234