lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] Adding support for static ARP entries


From: address@hidden
Subject: Re: [lwip-devel] Adding support for static ARP entries
Date: Sun, 07 Mar 2010 09:50:47 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

Things like this are best added as a patch at http://savannah.nongnu.org/patch/?group=lwip to make sure they don't get forgotten.

Simon


Marcus Bäckman wrote:
Hello,

I would like some feedback on the attached patch (against etharp.c 1.165, etharp.h 1.46) which adds support for static ARP entries.

Summary of changes:
- update_arp_entry() is now public by the name etharp_update_arp_entry()

- added flag ETHARP_LOCK_ENTRY which controls whether an entry should be locked and/or updated.

- The update policy for ARP entries has been changed according to:

  New state / update?                                         flags
                                                                                              ETHARP_LOCK_ENTRY
  Current state
  EMPTY                            STABLE / update                          LOCKED_STABLE / update
  PENDING                        STABLE / update                         LOCKED_STABLE / update
  STABLE                          STABLE / update                         LOCKED_STABLE / update
  LOCKED_STABLE           LOCKED_STABLE / no update      LOCKED_STABLE / update


I'm also attaching a log which demonstrates the behaviour (max ARP entries is set to 10).

Regards,
Marcus

_______________________________________________ lwip-devel mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-devel


reply via email to

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