[Mono-dev] [PATCH] Mono.Zeroconf Bonjour vs. Endianness

Casey Marshall casey.s.marshall at gmail.com
Wed Sep 23 17:21:06 EDT 2009


The endian conversion in the property  
Mono.Zeroconf.Providers.Bonjour.Service.UPort is wrong; casting  
between an int and a ushort doesn't do the right thing —  
NetworkToHostOrder will shift the low bytes into the high bytes, but  
casting that to a ushort discards the high bytes.

Patch attached.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ServiceUPort.patch
Type: application/octet-stream
Size: 802 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090923/ed477b8e/attachment.obj 


More information about the Mono-devel-list mailing list