bonjour-publish: Return ports in network byteorder
authorKenneth Perry <thothonegan@gmail.com>
Thu, 5 Dec 2013 09:19:08 +0000 (11:19 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Thu, 5 Dec 2013 09:21:51 +0000 (11:21 +0200)
commit2ff195aaa4238105a6a426e927efb8f81e94b9c5
treea959ccee80f205ec3b4164f8370f4942d7ff1057
parent3d425a3315122eb2db8f826549b54a302d3c153a
bonjour-publish: Return ports in network byteorder

For DNS-SD (Bonjour) discovery, all ports should be set in network
byteorder instead of host byteorder. Without this, all ports on
little-endian systems (intel) are incorrect.

Documentation:
https://developer.apple.com/library/mac/documentation/networking/Reference/DNSServiceDiscovery_CRef/Reference/reference.html#//apple_ref/c/func/DNSServiceRegister
src/modules/macosx/module-bonjour-publish.c