LwIP mDNS does not support SUBTYPE

217 Views Asked by At

I'm using the mDNS protocol implementation on lWIP, I need to add subtype for an mDNS service i'v created, but there is not any function or macro that could be used to set the subtype of a service. (thing existes in the standards and many other mDNS implementations on linux), Does anyone have an idea or the same issue before ? thanks in advance

1

There are 1 best solutions below

1
idirya On

After some researchs in the mdns and dns-sd standards with a light understanding of your mDNS implementation, i found a solution to implement it, actually it should be added as PTR RR answer to mdns output packet. I tested it many times and it works perfectly, So that resolve my problem. Here is a pull request i'v done in the Github LwIP repository : https://github.com/lwip-tcpip/lwip/pull/7 Otherwise you can check the patch based on the master branch in the link bellow : https://drive.google.com/drive/folders/1Wvge-EXT7tWr5M7phGl7sfhy_wtR8U1K?usp=sharing