X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/b7ef7f49c9f6b4de962ae32776866bd1d5d59c3b..7665bf323e76ed1ebcfd137e2ab0bd356b43a5e8:/Demos/Device/RNDISEthernet/Lib/IP.c diff --git a/Demos/Device/RNDISEthernet/Lib/IP.c b/Demos/Device/RNDISEthernet/Lib/IP.c index 8fb0b446d..c5c38fcad 100644 --- a/Demos/Device/RNDISEthernet/Lib/IP.c +++ b/Demos/Device/RNDISEthernet/Lib/IP.c @@ -39,6 +39,7 @@ /** Processes an IP packet inside an Ethernet frame, and writes the appropriate response * to the output Ethernet frame if one is created by a subprotocol handler. * + * \param FrameIN Pointer to the incomming Ethernet frame information structure * \param InDataStart Pointer to the start of the incoming packet's IP header * \param OutDataStart Pointer to the start of the outgoing packet's IP header * @@ -46,7 +47,7 @@ * response was generated, NO_PROCESS if the packet processing was deferred until the * next Ethernet packet handler iteration */ -int16_t IP_ProcessIPPacket(void* InDataStart, void* OutDataStart) +int16_t IP_ProcessIPPacket(Ethernet_Frame_Info_t* FrameIN, void* InDataStart, void* OutDataStart) { DecodeIPHeader(InDataStart); @@ -69,7 +70,8 @@ int16_t IP_ProcessIPPacket(void* InDataStart, void* OutDataStart) switch (IPHeaderIN->Protocol) { case PROTOCOL_ICMP: - RetSize = ICMP_ProcessICMPPacket(&((uint8_t*)InDataStart)[HeaderLengthBytes], + RetSize = ICMP_ProcessICMPPacket(FrameIN, + &((uint8_t*)InDataStart)[HeaderLengthBytes], &((uint8_t*)OutDataStart)[sizeof(IP_Header_t)]); break; case PROTOCOL_TCP: