lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] Adding support for static ARP entries


From: Marcus Bäckman
Subject: [lwip-devel] Adding support for static ARP entries
Date: Sat, 6 Mar 2010 22:09:43 +0100

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

Attachment: etharp.diff
Description: Text document

Attachment: etharp.zip
Description: Zip archive


reply via email to

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