commit | 0a1ea396d57c75b04aff7cb73d169717064c2b8a | [log] [tgz] |
---|---|---|
author | Tobias Klauser <tklauser@distanz.ch> | Fri Oct 02 11:28:52 2020 +0200 |
committer | Tobias Klauser <tobias.klauser@gmail.com> | Fri Oct 02 20:24:02 2020 +0000 |
tree | dbb519bfa4caf99310f09811eb68cc0f552207a4 | |
parent | 3d0752d450ed7c031f3b5bb3729a6519f3c002c1 [diff] |
internal/socket: use Cmsg{Len,Space} from golang.org/x/sys/unix Instead of duplicating the logic for cmsg alignment, use CmsgLen and CmsgSpace from golang.org/x/sys/unix. Moreover, this should simplify adding new ports. Change-Id: Ic3ac9cf14781eff5b8e4f34bfd2b1c8bd3b69341 Reviewed-on: https://go-review.googlesource.com/c/net/+/259058 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com>
This repository holds supplementary Go networking libraries.
The easiest way to install is to run go get -u golang.org/x/net
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/net
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/net:” in the subject line, so it is easy to find.