lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #55252] Gratuitous ARP sent before valid ip address is


From: Pelle Bergkvist
Subject: [lwip-devel] [bug #55252] Gratuitous ARP sent before valid ip address is obtained
Date: Thu, 20 Dec 2018 02:06:54 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134

URL:
  <https://savannah.nongnu.org/bugs/?55252>

                 Summary: Gratuitous ARP sent before valid ip address is
obtained
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: pellebk
            Submitted on: Thu 20 Dec 2018 07:06:52 AM UTC
                Category: ARP
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: 2.1.1

    _______________________________________________________

Details:

In netif_set_link_up an etharp_gratuitous is done even if the interface
address is IPADDR_ANY. Suggest to change the etharp_gratuitous define to:
#define etharp_gratuitous(netif) if (!ip4_addr_isany(netif_ip4_addr(netif))) {
etharp_request((netif), netif_ip4_addr(netif)); }
as this should not ever(?) be done for IPADDR_ANY

Alternative solution could be to update the if statement in
netif_set_link_up(struct netif *) to 
    /* For Ethernet network interfaces, we would like to send a "gratuitous
ARP" */
    if (((netif->flags & (NETIF_FLAG_ETHARP | NETIF_FLAG_POINTTOPOINT)) ==
NETIF_FLAG_ETHARP) && !ip4_addr_isany(netif_ip4_addr(netif))) {
        etharp_gratuitous(netif);
    }

Using the latest 2.1.2 version


 




    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?55252>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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