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

2009-09-23 Thread Casey Marshall
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 attac

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

2009-09-23 Thread Casey Marshall
On Sep 23, 2009, at 2:21 PM, Casey Marshall wrote: 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 th