patchlwIP - A Lightweight TCP/IP stack - Patches: patch #9904, mDNS: Let applications filter...


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

patch #9904: mDNS: Let applications filter which addresses to advertise

Submitter:  Christian Walther <cwalther>
Submitted:  Fri 06 Mar 2020 09:47:21 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:47:21 AM UTC, original submission:  

We had a use case of a network interface with several IPv4 and IPv6 addresses, of which only a subset should be advertised by mDNS. This patch adds this capability. It allows an application to install a callback function (per mDNS-enabled netif) that is called any time A/AAAA records are output, for each address individually, to decide whether to include this address or not. When no filter callback is installed, all addresses are advertised as usual.

To avoid increasing code size and runtime memory usage for users who do not need this feature, it is conditional on a define in mdns_opts.h and off by default.

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

Christian Walther <cwalther>


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

Attached Files


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)

    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.


    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-03-06 cwalther Attached File- Added 0001-mdns-add-API-function-to-let-applications-filter-whi.patch, #48557

    Back to the top

    Powered by Savane 3.13-599c.
    Corresponding source code