blob: 4bbfda07dc3a263e9cc943db4749bbeb24562918 [file] [log] [blame]
// Copyright 2020 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.
// Hand edited based on zerrors_zos_s390x.go
// TODO(Bill O'Farrell): auto-generate.
package ipv4
const (
sysIP_ADD_MEMBERSHIP = 5
sysIP_ADD_SOURCE_MEMBERSHIP = 12
sysIP_BLOCK_SOURCE = 10
sysIP_DEFAULT_MULTICAST_LOOP = 1
sysIP_DEFAULT_MULTICAST_TTL = 1
sysIP_DROP_MEMBERSHIP = 6
sysIP_DROP_SOURCE_MEMBERSHIP = 13
sysIP_MAX_MEMBERSHIPS = 20
sysIP_MULTICAST_IF = 7
sysIP_MULTICAST_LOOP = 4
sysIP_MULTICAST_TTL = 3
sysIP_OPTIONS = 1
sysIP_PKTINFO = 101
sysIP_RECVPKTINFO = 102
sysIP_TOS = 2
sysIP_UNBLOCK_SOURCE = 11
sysMCAST_JOIN_GROUP = 40
sysMCAST_LEAVE_GROUP = 41
sysMCAST_JOIN_SOURCE_GROUP = 42
sysMCAST_LEAVE_SOURCE_GROUP = 43
sysMCAST_BLOCK_SOURCE = 44
sysMCAST_UNBLOCK_SOURCE = 45
sizeofIPMreq = 8
sizeofSockaddrInet4 = 16
sizeofSockaddrStorage = 128
sizeofGroupReq = 136
sizeofGroupSourceReq = 264
sizeofInetPktinfo = 8
)
type sockaddrInet4 struct {
Len uint8
Family uint8
Port uint16
Addr [4]byte
Zero [8]uint8
}
type inetPktinfo struct {
Addr [4]byte
Ifindex uint32
}
type sockaddrStorage struct {
Len uint8
Family byte
ss_pad1 [6]byte
ss_align int64
ss_pad2 [112]byte
}
type groupReq struct {
Interface uint32
reserved uint32
Group sockaddrStorage
}
type groupSourceReq struct {
Interface uint32
reserved uint32
Group sockaddrStorage
Source sockaddrStorage
}
type ipMreq struct {
Multiaddr [4]byte /* in_addr */
Interface [4]byte /* in_addr */
}