patchlwIP - A Lightweight TCP/IP stack - Patches: patch #7113, Support for static ARP entries

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #7113: Support for static ARP entries

Submitter:  Marcus Bäckman <pukm>
Submitted:  Sun 07 Mar 2010 09:22:34 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  goldsimon Open/Closed:  Closed
Planned Release:  None

Thu 25 Mar 2010 05:54:54 PM UTC, comment #1: 

I implemented this a week ago, but slightly different as in the patch. Also, I added a function to remove entries previously added statically:
- etharp_add_static_entry()
- etharp_remove_static_entry()

Please speak up if my solution isn't OK / doesn't work for you.

Simon Goldschmidt <goldsimon>
Group administrator
Sun 07 Mar 2010 09:22:34 AM UTC, original submission:  

Hello,

This patch (against etharp.c 1.165 and etharp.h 1.46) 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 (LOCKED=LOCKED_STABLE):

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


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

--
Regards,
Marcus

Marcus Bäckman <pukm>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #19870:  etharp.zip added by pukm (1KiB - application/x-zip)
file #19869:  etharp.diff added by pukm (16KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by pukm (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-03-25 goldsimon StatusNone Done
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2010-03-07 pukm Attached File- Added etharp.diff, #19869
        Attached File- Added etharp.zip, #19870

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code