patchlwIP - A Lightweight TCP/IP stack - Patches: patch #9903, mDNS: Add API function to set an...

 
 

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

patch #9903: mDNS: Add API function to set an alias for the hostname

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

This patch set adds the possibility to advertise not just a single hostname by mDNS, but also an alias to it.

Following the DNS protocol, queries for “<alias>.local” will be answered with a CNAME record referring to the primary hostname as well as the requested records for the primary hostname.

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.

As side effects or prerequisites, two internal reorganizations are included:

  • Host (and now alias) names are stored as mdns_domain instead of string, which avoids a lot of string-to-domain conversions at runtime.
  • A bug in repeating the question for legacy queries is fixed. This previously hasn’t worked correctly for questions for type or class ANY, and now wouldn’t have worked for questions for the alias name.


The patches apply on top of patch #9902, but I can supply them rebased on master if desired.

Christian Walther <cwalther>

 

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

 

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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-03-06 cwalther Attached File- Added 0001-mdns-support-hostnames-with-subdomains-foo.bar.patch, #48554
        Attached File- Added 0002-mdns-fix-legacy-question-repeating.patch, #48555
        Attached File- Added 0003-mdns-add-API-function-mdns_resp_set_alias-that-allow.patch, #48556

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code