lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] Re: generate a broadcast answer...


From: address@hidden
Subject: Re: [lwip-devel] Re: generate a broadcast answer...
Date: Mon, 09 Mar 2009 22:02:41 +0100
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

Piero 74 wrote:
...i'm thinking:

after a first arp request from pc (ping or tcp connect) i will have a
couple ip-macAddress in my arp table.
can i force a refresh in
some way?
If you *know* the IP address of the PC, you could use etharp_request() which directly sends an ARP request. You can also use that to re-request the addresses in the ARP table. If you put that code into etharp_tmr (with a counter per entry), you have a periodic refresh of the whole table.

Only one question: why would you need that? If you set ARP_MAXAGE low enough, arp entries automatically get invalidated after a timeout and will be re-requested if reused.

Simon




reply via email to

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