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

Submitted by:  Christian Walther <cwalther>
Submitted on:  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>

 

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)
  •  

    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-add-API-function-to-let-applications-filter-whi.patch, #48557

    Back to the top


    Powered by Savane 3.5