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  * Copyright (C) 2010-2018 Oryx Embedded SARL. All rights reserved.
8  *
9  * This file is part of CycloneTCP Pro.
10  *
11  * This software is provided under a commercial license. You may
12  * use this software under the conditions stated in the license
13  * terms. This source code cannot be redistributed.
14  *
15  * @author Oryx Embedded SARL (www.oryx-embedded.com)
16  * @version 1.9.0
17  **/
18 
19 #ifndef _RNDIS_DEBUG_H
20 #define _RNDIS_DEBUG_H
21 
22 //Dependencies
23 #include "rndis.h"
24 
25 
26 /**
27  * @brief Value/name pair
28  **/
29 
30 typedef struct
31 {
32  uint32_t value;
33  const char_t *name;
35 
36 
37 //RNDIS related functions
47 
53 
54 const char_t *rndisFindName(uint32_t value, const RndisValueName *table, size_t size);
55 
56 #endif
error_t rndisDumpInitializeCmplt(const RndisInitializeCmplt *message, size_t length)
Dump REMOTE_NDIS_INITIALIZE_CMPLT message.
Definition: rndis_debug.c:469
RNDIS Query message.
Definition: rndis.h:234
error_t rndisDumpSetCmplt(const RndisSetCmplt *message, size_t length)
Dump REMOTE_NDIS_SET_CMPLT message.
Definition: rndis_debug.c:553
RNDIS Indicate Status message.
Definition: rndis.h:280
char char_t
Definition: compiler_port.h:41
Generic RNDIS message.
Definition: rndis.h:196
Response to a RNDIS Initialize message.
Definition: rndis.h:318
error_t rndisDumpPacketMsg(const RndisPacketMsg *message, size_t length)
Dump REMOTE_NDIS_PACKET_MSG message.
Definition: rndis_debug.c:208
error_t rndisDumpKeepAliveMsg(const RndisKeepAliveMsg *message, size_t length)
Dump REMOTE_NDIS_KEEPALIVE_MSG message.
Definition: rndis_debug.c:448
RNDIS Packet message.
Definition: rndis.h:395
uint8_t message[]
Definition: chap.h:150
Response to a RNDIS Query message.
Definition: rndis.h:340
RNDIS Keep-Alive message.
Definition: rndis.h:306
uint32_t value
Definition: rndis_debug.h:32
const char_t * rndisFindName(uint32_t value, const RndisValueName *table, size_t size)
Helper function.
Definition: rndis_debug.c:647
RNDIS Initialize message.
Definition: rndis.h:207
error_t rndisDumpQueryCmplt(const RndisQueryCmplt *message, size_t length)
Dump REMOTE_NDIS_QUERY_CMPLT message.
Definition: rndis_debug.c:509
Value/name pair.
Definition: rndis_debug.h:30
RNDIS Reset message.
Definition: rndis.h:268
error_t rndisDumpHaltMsg(const RndisHaltMsg *message, size_t length)
Dump REMOTE_NDIS_HALT_MSG message.
Definition: rndis_debug.c:261
const char_t * name
Definition: rndis_debug.h:33
RNDIS Set message.
Definition: rndis.h:251
Response to a RNDIS Keep-Alive message.
Definition: rndis.h:382
error_t rndisDumpResetCmplt(const RndisResetCmplt *message, size_t length)
Dump REMOTE_NDIS_RESET_CMPLT message.
Definition: rndis_debug.c:584
error_t rndisDumpResetMsg(const RndisResetMsg *message, size_t length)
Dump REMOTE_NDIS_RESET_MSG message.
Definition: rndis_debug.c:372
error_t rndisDumpKeepAliveCmplt(const RndisKeepAliveCmplt *message, size_t length)
Dump REMOTE_NDIS_KEEPALIVE_CMPLT message.
Definition: rndis_debug.c:615
error_t rndisDumpInitializeMsg(const RndisInitializeMsg *message, size_t length)
Dump REMOTE_NDIS_INITIALIZE_MSG message.
Definition: rndis_debug.c:237
RNDIS (Remote Network Driver Interface Specification)
error_t
Error codes.
Definition: error.h:40
Response to a RNDIS Reset message.
Definition: rndis.h:369
Response to a RNDIS Set message.
Definition: rndis.h:356
uint8_t value[]
Definition: dtls_misc.h:141
RNDIS Halt message.
Definition: rndis.h:222
error_t rndisDumpMsg(const RndisMsg *message, size_t length)
Dump RNDIS message for debugging purpose.
Definition: rndis_debug.c:112
error_t rndisDumpIndicateStatusMsg(const RndisIndicateStatusMsg *message, size_t length)
Dump REMOTE_NDIS_INDICATE_STATUS_MSG message.
Definition: rndis_debug.c:393
error_t rndisDumpQueryMsg(const RndisQueryMsg *message, size_t length)
Dump REMOTE_NDIS_QUERY_MSG message.
Definition: rndis_debug.c:282
uint8_t length
Definition: dtls_misc.h:140
error_t rndisDumpSetMsg(const RndisSetMsg *message, size_t length)
Dump REMOTE_NDIS_SET_MSG message.
Definition: rndis_debug.c:327