Go to the documentation of this file.
32 #define TRACE_LEVEL TRACE_LEVEL_INFO
40 #if (TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
42 #define TRACE_DEBUG(...) fprintf(stderr, __VA_ARGS__)
43 #undef TRACE_DEBUG_ARRAY
44 #define TRACE_DEBUG_ARRAY(p, a, n) debugDisplayArray(stderr, p, a, n)
50 {0x00000001,
"REMOTE_NDIS_PACKET_MSG"},
51 {0x00000002,
"REMOTE_NDIS_INITIALIZE_MSG"},
52 {0x80000002,
"REMOTE_NDIS_INITIALIZE_CMPLT"},
53 {0x00000003,
"REMOTE_NDIS_HALT_MSG"},
54 {0x00000004,
"REMOTE_NDIS_QUERY_MSG"},
55 {0x80000004,
"REMOTE_NDIS_QUERY_CMPLT"},
56 {0x00000005,
"REMOTE_NDIS_SET_MSG"},
57 {0x80000005,
"REMOTE_NDIS_SET_CMPLT"},
58 {0x00000006,
"REMOTE_NDIS_RESET_MSG"},
59 {0x80000006,
"REMOTE_NDIS_RESET_CMPLT"},
60 {0x00000007,
"REMOTE_NDIS_INDICATE_STATUS_MSG"},
61 {0x00000008,
"REMOTE_NDIS_KEEPALIVE_CMPLT"},
62 {0x80000008,
"REMOTE_NDIS_KEEPALIVE_CMPLT"}
68 {0x00000000,
"RNDIS_STATUS_SUCCESS"},
69 {0xC0000001,
"RNDIS_STATUS_FAILURE"},
70 {0xC0010015,
"RNDIS_STATUS_INVALID_DATA"},
71 {0xC00000BB,
"RNDIS_STATUS_NOT_SUPPORTED"},
72 {0x4001000B,
"RNDIS_STATUS_MEDIA_CONNECT"},
73 {0x4001000C,
"RNDIS_STATUS_MEDIA_DISCONNECT"}
80 {0x00010101,
"OID_GEN_SUPPORTED_LIST"},
81 {0x00010102,
"OID_GEN_HARDWARE_STATUS"},
82 {0x00010103,
"OID_GEN_MEDIA_SUPPORTED"},
83 {0x00010104,
"OID_GEN_MEDIA_IN_USE"},
84 {0x00010105,
"OID_GEN_MAXIMUM_LOOKAHEAD"},
85 {0x00010106,
"OID_GEN_MAXIMUM_FRAME_SIZE"},
86 {0x00010107,
"OID_GEN_LINK_SPEED"},
87 {0x00010108,
"OID_GEN_TRANSMIT_BUFFER_SPACE"},
88 {0x00010109,
"OID_GEN_RECEIVE_BUFFER_SPACE"},
89 {0x0001010A,
"OID_GEN_TRANSMIT_BLOCK_SIZE"},
90 {0x0001010B,
"OID_GEN_RECEIVE_BLOCK_SIZE"},
91 {0x0001010C,
"OID_GEN_VENDOR_ID"},
92 {0x0001010D,
"OID_GEN_VENDOR_DESCRIPTION"},
93 {0x0001010E,
"OID_GEN_CURRENT_PACKET_FILTER"},
94 {0x0001010F,
"OID_GEN_CURRENT_LOOKAHEAD"},
95 {0x00010110,
"OID_GEN_DRIVER_VERSION"},
96 {0x00010111,
"OID_GEN_MAXIMUM_TOTAL_SIZE"},
97 {0x00010112,
"OID_GEN_PROTOCOL_OPTIONS"},
98 {0x00010113,
"OID_GEN_MAC_OPTIONS"},
99 {0x00010114,
"OID_GEN_MEDIA_CONNECT_STATUS"},
100 {0x00010115,
"OID_GEN_MAXIMUM_SEND_PACKETS"},
101 {0x00010116,
"OID_GEN_VENDOR_DRIVER_VERSION"},
102 {0x00010117,
"OID_GEN_SUPPORTED_GUIDS"},
103 {0x00010118,
"OID_GEN_NETWORK_LAYER_ADDRESSES"},
104 {0x00010119,
"OID_GEN_TRANSPORT_HEADER_OFFSET"},
105 {0x0001021A,
"OID_GEN_MACHINE_NAME"},
106 {0x0001021B,
"OID_GEN_RNDIS_CONFIG_PARAMETER"},
107 {0x0001021C,
"OID_GEN_VLAN_ID"},
109 {0x01010101,
"OID_802_3_PERMANENT_ADDRESS"},
110 {0x01010102,
"OID_802_3_CURRENT_ADDRESS"},
111 {0x01010103,
"OID_802_3_MULTICAST_LIST"},
112 {0x01010104,
"OID_802_3_MAXIMUM_LIST_SIZE"},
113 {0x01010105,
"OID_802_3_MAC_OPTIONS"},
127 #if (TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
232 TRACE_DEBUG(
" PerPacketInfoOffset = 0x%08" PRIX32
"\r\n",
message->perPacketInfoOffset);
297 #if (TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
342 #if (TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
408 #if (TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
484 #if (TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
502 TRACE_DEBUG(
" MaxPacketsPerTransfer = %" PRIu32
"\r\n",
message->maxPacketsPerTransfer);
504 TRACE_DEBUG(
" PacketAlignmentFactor = %" PRIu32
"\r\n",
message->packetAlignmentFactor);
524 #if (TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
568 #if (TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
599 #if (TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
630 #if (TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
665 static const char_t defaultName[] =
"Unknown";
668 for(i = 0; i < size; i++)
674 return table[i].
name;
Response to a RNDIS Initialize message.
#define RNDIS_KEEPALIVE_CMPLT
error_t rndisDumpQueryCmplt(const RndisQueryCmplt *message, size_t length)
Dump REMOTE_NDIS_QUERY_CMPLT message.
#define RNDIS_QUERY_CMPLT
error_t rndisDumpKeepAliveCmplt(const RndisKeepAliveCmplt *message, size_t length)
Dump REMOTE_NDIS_KEEPALIVE_CMPLT message.
RNDIS Indicate Status message.
#define RNDIS_KEEPALIVE_MSG
Response to a RNDIS Query message.
error_t rndisDumpHaltMsg(const RndisHaltMsg *message, size_t length)
Dump REMOTE_NDIS_HALT_MSG message.
error_t rndisDumpInitializeCmplt(const RndisInitializeCmplt *message, size_t length)
Dump REMOTE_NDIS_INITIALIZE_CMPLT message.
error_t rndisDumpSetMsg(const RndisSetMsg *message, size_t length)
Dump REMOTE_NDIS_SET_MSG message.
RNDIS (Remote Network Driver Interface Specification)
#define RNDIS_INDICATE_STATUS_MSG
Response to a RNDIS Keep-Alive message.
#define RNDIS_INITIALIZE_MSG
error_t rndisDumpKeepAliveMsg(const RndisKeepAliveMsg *message, size_t length)
Dump REMOTE_NDIS_KEEPALIVE_MSG message.
const RndisValueName rndisOidLabel[]
#define RNDIS_RESET_CMPLT
Response to a RNDIS Set message.
RNDIS Initialize message.
const char_t * rndisFindName(uint32_t value, const RndisValueName *table, size_t size)
Helper function.
const RndisValueName rndisStatusLabel[]
#define TRACE_DEBUG_ARRAY(p, a, n)
error_t rndisDumpPacketMsg(const RndisPacketMsg *message, size_t length)
Dump REMOTE_NDIS_PACKET_MSG message.
const RndisValueName rndisMsgLabel[]
error_t rndisDumpResetCmplt(const RndisResetCmplt *message, size_t length)
Dump REMOTE_NDIS_RESET_CMPLT message.
error_t rndisDumpQueryMsg(const RndisQueryMsg *message, size_t length)
Dump REMOTE_NDIS_QUERY_MSG message.
error_t rndisDumpMsg(const RndisMsg *message, size_t length)
Dump RNDIS message for debugging purpose.
error_t rndisDumpSetCmplt(const RndisSetCmplt *message, size_t length)
Dump REMOTE_NDIS_SET_CMPLT message.
error_t rndisDumpInitializeMsg(const RndisInitializeMsg *message, size_t length)
Dump REMOTE_NDIS_INITIALIZE_MSG message.
Response to a RNDIS Reset message.
#define RNDIS_INITIALIZE_CMPLT
error_t rndisDumpIndicateStatusMsg(const RndisIndicateStatusMsg *message, size_t length)
Dump REMOTE_NDIS_INDICATE_STATUS_MSG message.
RNDIS Keep-Alive message.
error_t rndisDumpResetMsg(const RndisResetMsg *message, size_t length)
Dump REMOTE_NDIS_RESET_MSG message.