lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Passing ARP replies to host


From: address@hidden
Subject: Re: [lwip-users] Passing ARP replies to host
Date: Mon, 5 Nov 2018 17:26:08 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 05.11.2018 16:35, Amena El Homsi wrote:
LwIP processes the ARP requests and replies updated the ARP table, then it calls pbuf_free(). Is there a way to send the ARP reply to the host when the host requested lwIP to send an ARP request?

No.

I was thinking to use raw pcb and define a raw callback function that will inform the host of the result of the ARP request, however raw_input() is not called unless ip4_input is called and since the arp will be processed by etharp_input I will not be able to use raw_pcb.

As you have found out yourself, raw pcbs are raw IP pcbs, not raw network packets. It's like that in the socket world...

Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]