Re: [go-nuts] Is this code in package unix assuming machine endianess?

2020-03-12 Thread Tom Parkin
r 2020 at 01:33, Rob Pike wrote: > More context, in the form of self-promotion: > https://commandcenter.blogspot.com/2012/04/byte-order-fallacy.html > > -rob > > > On Wed, Mar 11, 2020 at 9:42 PM Tom Parkin wrote: > >> On Tue, 10 Mar 2020 at 23:14, Ian Lance Taylor

Re: [go-nuts] Is this code in package unix assuming machine endianess?

2020-03-11 Thread Tom Parkin
On Tue, 10 Mar 2020 at 23:14, Ian Lance Taylor wrote: > On Tue, Mar 10, 2020 at 4:03 PM Tom Parkin wrote: > > > > I'm working on adding a new Linux socket type (L2TPIP) to the unix > package, and I noticed some code in there that appears on the face of it to > be ass

[go-nuts] Is this code in package unix assuming machine endianess?

2020-03-10 Thread Tom Parkin
Hi all, I'm working on adding a new Linux socket type (L2TPIP) to the unix package, and I noticed some code in there that appears on the face of it to be assuming the endianess of the host. The #networking channel on the Gophers slack suggested I raise the question here. The code I am struggl