X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/b9b03aadb219d06fbad9d110e508db93e45461af..a459f10b0c1a3e02f160ff3a1a2a0b45ae5b69a7:/Demos/Device/ClassDriver/RNDISEthernet/Lib/ProtocolDecoders.c diff --git a/Demos/Device/ClassDriver/RNDISEthernet/Lib/ProtocolDecoders.c b/Demos/Device/ClassDriver/RNDISEthernet/Lib/ProtocolDecoders.c index add0333f2..d4e2ceb86 100644 --- a/Demos/Device/ClassDriver/RNDISEthernet/Lib/ProtocolDecoders.c +++ b/Demos/Device/ClassDriver/RNDISEthernet/Lib/ProtocolDecoders.c @@ -51,17 +51,17 @@ /** Decodes an Ethernet frame header and prints its contents to through the USART in a human readable format. * - * \param InDataStart Pointer to the start of an Ethernet frame header + * \param[in] InDataStart Pointer to the start of an Ethernet frame header */ -void DecodeEthernetFrameHeader(void* InDataStart) +void DecodeEthernetFrameHeader(Ethernet_Frame_Info_t* FrameINData) { #if !defined(NO_DECODE_ETHERNET) - Ethernet_Frame_Header_t* FrameHeader = (Ethernet_Frame_Header_t*)InDataStart; + Ethernet_Frame_Header_t* FrameHeader = (Ethernet_Frame_Header_t*)FrameINData->FrameData; printf_P(PSTR("\r\n")); printf_P(PSTR(" ETHERNET\r\n")); - printf_P(PSTR(" + Frame Size: %u\r\n"), FrameIN.FrameLength); + printf_P(PSTR(" + Frame Size: %u\r\n"), FrameINData->FrameLength); if (!(MAC_COMPARE(&FrameHeader->Destination, &ServerMACAddress)) && !(MAC_COMPARE(&FrameHeader->Destination, &BroadcastMACAddress))) @@ -84,7 +84,7 @@ void DecodeEthernetFrameHeader(void* InDataStart) FrameHeader->Destination.Octets[4], FrameHeader->Destination.Octets[5]); - if (SwapEndian_16(FrameIN.FrameLength) > ETHERNET_VER2_MINSIZE) + if (SwapEndian_16(FrameINData->FrameLength) > ETHERNET_VER2_MINSIZE) printf_P(PSTR(" + Protocol: 0x%04x\r\n"), SwapEndian_16(FrameHeader->EtherType)); else printf_P(PSTR(" + Protocol: UNKNOWN E1\r\n")); @@ -93,7 +93,7 @@ void DecodeEthernetFrameHeader(void* InDataStart) /** Decodes an ARP header and prints its contents to through the USART in a human readable format. * - * \param InDataStart Pointer to the start of an ARP packet header + * \param[in] InDataStart Pointer to the start of an ARP packet header */ void DecodeARPHeader(void* InDataStart) { @@ -143,7 +143,7 @@ void DecodeARPHeader(void* InDataStart) /** Decodes an IP header and prints its contents to through the USART in a human readable format. * - * \param InDataStart Pointer to the start of an IP packet header + * \param[in] InDataStart Pointer to the start of an IP packet header */ void DecodeIPHeader(void* InDataStart) { @@ -181,7 +181,7 @@ void DecodeIPHeader(void* InDataStart) /** Decodes an ICMP header and prints its contents to through the USART in a human readable format. * - * \param InDataStart Pointer to the start of an ICMP packet header + * \param[in] InDataStart Pointer to the start of an ICMP packet header */ void DecodeICMPHeader(void* InDataStart) { @@ -197,7 +197,7 @@ void DecodeICMPHeader(void* InDataStart) /** Decodes a TCP header and prints its contents to through the USART in a human readable format. * - * \param InDataStart Pointer to the start of a TCP packet header + * \param[in] InDataStart Pointer to the start of a TCP packet header */ void DecodeTCPHeader(void* InDataStart) { @@ -225,7 +225,7 @@ void DecodeTCPHeader(void* InDataStart) /** Decodes an UDP header and prints its contents to through the USART in a human readable format. * - * \param InDataStart Pointer to the start of a UDP packet header + * \param[in] InDataStart Pointer to the start of a UDP packet header */ void DecodeUDPHeader(void* InDataStart) { @@ -243,7 +243,7 @@ void DecodeUDPHeader(void* InDataStart) /** Decodes an DHCP header and prints its contents to through the USART in a human readable format. * - * \param InDataStart Pointer to the start of a DHCP packet header + * \param[in] InDataStart Pointer to the start of a DHCP packet header */ void DecodeDHCPHeader(void* InDataStart) {