lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #58264] mdns keep sending probes bug


From: Axel Lin
Subject: [lwip-devel] [bug #58264] mdns keep sending probes bug
Date: Mon, 27 Apr 2020 23:44:18 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36

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

                 Summary: mdns keep sending probes bug
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: axellin
            Submitted on: Tue 28 Apr 2020 03:44:16 AM UTC
                Category: None
                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:

The lwIP device is configured with LWIP_IPV4=1 && LWIP_IPV6=1.
In IPv4-only environement the device keep sending probes.

mdns_probe() has below code: (STABLE-2_1_x branch)

#if LWIP_IPV4
    /*if ipv4 wait with probing until address is set*/
    if (!ip4_addr_isany_val(*netif_ip4_addr(netif)) &&
        mdns_send_probe(netif, IP4_ADDR_ANY) == ERR_OK)
#endif
    {
#if LWIP_IPV6
      if (mdns_send_probe(netif, IP6_ADDR_ANY) == ERR_OK)
#endif
      {
        mdns->probes_sent++;
      }
    }


Then mdns_send_probe(netif, IP4_ADDR_ANY) returns ERR_OK but
mdns_send_probe(netif, IP6_ADDR_ANY) returns ERR_RTE.
So mdns->probes_sent++ is never executed, the device keep sending probes.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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