buglwIP - A Lightweight TCP/IP stack - Bugs: bug #26507, Gratuitous ARP depends on...

 
 

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

bug #26507: Gratuitous ARP depends on arp_table / uses etharp_query

Submitted by:  Simon Goldschmidt <goldsimon>
Submitted on:  Fri 08 May 2009 08:09:41 PM UTC  
 
Category: ARPSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: CVS Head

Tue 12 May 2009 08:14:40 PM UTC, comment #1:

"HM2" wrote on lwip-source:

> This is probably nit picky, but I think the Target Hardware Address should
> be set to the FF... broadcast value, rather than Zero. This is in Etharp.c
> in the function etharp_request(). &ethzero is used where I think it should
> be &ethbroadcast. In the other examples and doc I always see FF... used
> for this value.


However, RFC 3220 says in chapter 4.6

When using an ARP Reply packet,
the Target Hardware Address is also set to the link-layer
address to which this cache entry should be updated (this field
is not used in an ARP Request packet).

So it is OK to use ethzero.

I've added a function-like define etharp_gratuitous(), that is used instead of etharp_query in netif.c. It just sends a gratuitous request by calling etharp_request(netif, netif->ip_addr).

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Fri 08 May 2009 08:09:41 PM UTC, original submission:

We should provide an own function for sending gratuitous ARPs.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 12 May 2009 08:14:39 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1