buglwIP - A Lightweight TCP/IP stack - Bugs: bug #58264, mdns keep sending probes bug

 
 

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

bug #58264: mdns keep sending probes bug

Submitter:  Axel Lin <axellin>
Submitted:  Tue 28 Apr 2020 03:44:16 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned Release:  None
lwIP version:  2.1.1

Fri 01 May 2020 04:43:33 AM UTC, comment #1: 

It's bug in my application, sorry for the noise.

Axel Lin <axellin>
Group Member
Tue 28 Apr 2020 03:44:16 AM UTC, original submission:  

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.

Axel Lin <axellin>
Group Member

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by axellin (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-05-01 axellin Open/ClosedOpen Closed
    2020-05-01 axellin StatusNone Invalid

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code