mirror of
https://github.com/golang/net.git
synced 2026-03-31 02:17:08 +09:00
Done with: go get go@1.18 go mod tidy go fix ./... Using go1.21.3. With a manual change to keep golang.org/x/net/context testing itself, not context in the standard library. For golang/go#60268. Change-Id: I00682bf7cf1e3ba4370e2a3e7f63dc245b294a36 Reviewed-on: https://go-review.googlesource.com/c/net/+/534241 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Damien Neil <dneil@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
77 lines
1.3 KiB
Go
77 lines
1.3 KiB
Go
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
|
// cgo -godefs defs_linux.go
|
|
|
|
//go:build riscv64
|
|
|
|
package ipv4
|
|
|
|
const (
|
|
sizeofKernelSockaddrStorage = 0x80
|
|
sizeofSockaddrInet = 0x10
|
|
sizeofInetPktinfo = 0xc
|
|
sizeofSockExtendedErr = 0x10
|
|
|
|
sizeofIPMreq = 0x8
|
|
sizeofIPMreqSource = 0xc
|
|
sizeofGroupReq = 0x88
|
|
sizeofGroupSourceReq = 0x108
|
|
|
|
sizeofICMPFilter = 0x4
|
|
)
|
|
|
|
type kernelSockaddrStorage struct {
|
|
Family uint16
|
|
X__data [126]int8
|
|
}
|
|
|
|
type sockaddrInet struct {
|
|
Family uint16
|
|
Port uint16
|
|
Addr [4]byte /* in_addr */
|
|
X__pad [8]uint8
|
|
}
|
|
|
|
type inetPktinfo struct {
|
|
Ifindex int32
|
|
Spec_dst [4]byte /* in_addr */
|
|
Addr [4]byte /* in_addr */
|
|
}
|
|
|
|
type sockExtendedErr struct {
|
|
Errno uint32
|
|
Origin uint8
|
|
Type uint8
|
|
Code uint8
|
|
Pad uint8
|
|
Info uint32
|
|
Data uint32
|
|
}
|
|
|
|
type ipMreq struct {
|
|
Multiaddr [4]byte /* in_addr */
|
|
Interface [4]byte /* in_addr */
|
|
}
|
|
|
|
type ipMreqSource struct {
|
|
Multiaddr uint32
|
|
Interface uint32
|
|
Sourceaddr uint32
|
|
}
|
|
|
|
type groupReq struct {
|
|
Interface uint32
|
|
Pad_cgo_0 [4]byte
|
|
Group kernelSockaddrStorage
|
|
}
|
|
|
|
type groupSourceReq struct {
|
|
Interface uint32
|
|
Pad_cgo_0 [4]byte
|
|
Group kernelSockaddrStorage
|
|
Source kernelSockaddrStorage
|
|
}
|
|
|
|
type icmpFilter struct {
|
|
Data uint32
|
|
}
|