Bug 68283 - Bonjour requires ports to be specified in network-byte-order
Summary: Bonjour requires ports to be specified in network-byte-order
Status: RESOLVED FIXED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: modules (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Mac OS X (All)
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2013-08-19 15:54 UTC by Kenneth Perry
Modified: 2013-12-05 09:24 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch that uses htons to return ports in network byteorder (507 bytes, patch)
2013-08-19 15:54 UTC, Kenneth Perry
Details | Splinter Review

Description Kenneth Perry 2013-08-19 15:54:45 UTC
Created attachment 84255 [details] [review]
Patch that uses htons to 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. Patch attached that uses htons() to return the port in network order.

Documentation: https://developer.apple.com/library/mac/documentation/networking/Reference/DNSServiceDiscovery_CRef/Reference/reference.html#//apple_ref/c/func/DNSServiceRegister
Comment 1 Tanu Kaskinen 2013-12-05 09:24:06 UTC
Thanks! We have a long patch queue, so getting around to this took long, but now the patch has been applied.

http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=2ff195aaa4238105a6a426e927efb8f81e94b9c5


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.