You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current SockaddrStorage type is not useful because the __data field is not exported due to being named X__ss_padding by default when run through the code generator.
In addition, the data type of this field is a either an array of uint8 or int8 on various platforms, which will make it difficult to use.
I will submit a change to export this field as Data and simplify all of the array types to an array of bytes.
The current SockaddrStorage type is not useful because the
__data
field is not exported due to being namedX__ss_padding
by default when run through the code generator.In addition, the data type of this field is a either an array of
uint8
orint8
on various platforms, which will make it difficult to use.I will submit a change to export this field as Data and simplify all of the array types to an array of bytes.
See also:
https://go-review.googlesource.com/c/sys/+/106656
https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/socket.h#L14
And a similar workaround applied with:
https://go-review.googlesource.com/c/sys/+/107415
The text was updated successfully, but these errors were encountered: