patchlwIP - A Lightweight TCP/IP stack - Patches: patch #9905, mDNS: Implement goodbye packet


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

patch #9905: mDNS: Implement goodbye packet

Submitted by:  Christian Walther <cwalther>
Submitted on:  Fri 06 Mar 2020 09:49:20 AM UTC  
Category:  apps Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Planned Release:  None

Fri 06 Mar 2020 09:49:20 AM UTC, original submission:  

The mDNS standard specifies that a responder can announce its departure from the network by sending an unsolicited update of all its records with TTL zero. This is implemented by this patch. When LWIP_NETIF_EXT_STATUS_CALLBACK and MDNS_RESP_USENETIF_EXTCALLBACK are enabled, such goodbye messages are automatically sent when the network interface or link go down. API function mdns_resp_goodbye() is provided for applications to do it explicitly at any time.

The comment at the top of mdns.c mentions more reasons for sending goodbye messages (“DHCP lease about to expire, DHCP turned off...”), we did not implement those because we are not using them (therefore the comment is left there).

The patch applies on top of patch #9904, but I can supply it rebased on master if desired.

Christian Walther <cwalther>


Attached Files
file #48558:  0001-mdns-implement-goodbye-messages.patch added by cwalther (10KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by cwalther (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.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-03-06 cwalther Attached File- => Added 0001-mdns-implement-goodbye-messages.patch, #48558

    Back to the top

    Powered by Savane 3.5