In MacOS with MDNSRESPONDER, DNSServiceRegister API takes port number argument in "Network Byte Order".
But in dnssd.c port number is pass in "Host Byte Order", because of which ippserver or ippeveprinter from https://github.com/istopwg/ippsample are advertising wrong port number through bonjour service.
It works fine in Ubuntu Linux, which is using Avahi.
In below picture's left terminal ippserver is run with port number 8631, in right terminal ippfind tool is used to find the "test printer" which is reporting 46881 as port number in service_uri. 46881 is in host byte order, converting it to network byte order will give 8631.
Please let me know if additional information is required for this pull request.
In MacOS with MDNSRESPONDER, DNSServiceRegister API takes port number argument in "Network Byte Order". But in dnssd.c port number is pass in "Host Byte Order", because of which ippserver or ippeveprinter from https://github.com/istopwg/ippsample are advertising wrong port number through bonjour service.
It works fine in Ubuntu Linux, which is using Avahi.
In below picture's left terminal ippserver is run with port number 8631, in right terminal ippfind tool is used to find the "test printer" which is reporting 46881 as port number in service_uri. 46881 is in host byte order, converting it to network byte order will give 8631.
Please let me know if additional information is required for this pull request.