ipv4: fix TTL control message parsing on big-endian Linux and Solaris On Linux, IP_TTL ancillary data is a 4-byte native-endian int rather than a 1-byte value; reading only the first byte misparsed the TTL as 0 on big-endian architectures. On Solaris, IP_RECVTTL ancillary data is a 1-byte uint8_t, not 4 bytes. Change-Id: I3ccebc693bc3aa377890bc4ebc8e7cc66a6a6964 Reviewed-on: https://go-review.googlesource.com/c/net/+/852827 Auto-Submit: Damien Neil <dneil@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com>
This repository holds supplementary Go networking packages.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/net.
The main issue tracker for the net repository is located at https://go.dev/issues. Prefix your issue with “x/net:” in the subject line, so it is easy to find.