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

Submitted by:  Axel Lin <axellin>
Submitted on:  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>
Project 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 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)
      if (mdns_send_probe(netif, IP6_ADDR_ANY) == ERR_OK)

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>
Project Member


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)

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

    Only logged-in users can vote.




    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.6