mirror of
https://github.com/golang/net.git
synced 2026-03-31 10:27:08 +09:00
Change-Id: I5419445ef15b0c080fb3b5c2bd413d74ac52bdd4 Co-authored-by: limeidan <limeidan@loongson.cn> Co-authored-by: liuxiaodong <liuxiaodong@loongson.cn> Reviewed-on: https://go-review.googlesource.com/c/net/+/355549 Trust: Damien Neil <dneil@google.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org>
16 lines
482 B
Go
16 lines
482 B
Go
// Copyright 2017 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build (arm64 || amd64 || loong64 || ppc64 || ppc64le || mips64 || mips64le || riscv64 || s390x) && linux
|
|
// +build arm64 amd64 loong64 ppc64 ppc64le mips64 mips64le riscv64 s390x
|
|
// +build linux
|
|
|
|
package socket
|
|
|
|
func (h *cmsghdr) set(l, lvl, typ int) {
|
|
h.Len = uint64(l)
|
|
h.Level = int32(lvl)
|
|
h.Type = int32(typ)
|
|
}
|