github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/golang.org/x/net/ipv4/zsys_darwin.go (about) 1 // Created by cgo -godefs - DO NOT EDIT 2 // cgo -godefs defs_darwin.go 3 4 package ipv4 5 6 const ( 7 sysIP_OPTIONS = 0x1 8 sysIP_HDRINCL = 0x2 9 sysIP_TOS = 0x3 10 sysIP_TTL = 0x4 11 sysIP_RECVOPTS = 0x5 12 sysIP_RECVRETOPTS = 0x6 13 sysIP_RECVDSTADDR = 0x7 14 sysIP_RETOPTS = 0x8 15 sysIP_RECVIF = 0x14 16 sysIP_STRIPHDR = 0x17 17 sysIP_RECVTTL = 0x18 18 sysIP_BOUND_IF = 0x19 19 sysIP_PKTINFO = 0x1a 20 sysIP_RECVPKTINFO = 0x1a 21 22 sysIP_MULTICAST_IF = 0x9 23 sysIP_MULTICAST_TTL = 0xa 24 sysIP_MULTICAST_LOOP = 0xb 25 sysIP_ADD_MEMBERSHIP = 0xc 26 sysIP_DROP_MEMBERSHIP = 0xd 27 sysIP_MULTICAST_VIF = 0xe 28 sysIP_MULTICAST_IFINDEX = 0x42 29 sysIP_ADD_SOURCE_MEMBERSHIP = 0x46 30 sysIP_DROP_SOURCE_MEMBERSHIP = 0x47 31 sysIP_BLOCK_SOURCE = 0x48 32 sysIP_UNBLOCK_SOURCE = 0x49 33 sysMCAST_JOIN_GROUP = 0x50 34 sysMCAST_LEAVE_GROUP = 0x51 35 sysMCAST_JOIN_SOURCE_GROUP = 0x52 36 sysMCAST_LEAVE_SOURCE_GROUP = 0x53 37 sysMCAST_BLOCK_SOURCE = 0x54 38 sysMCAST_UNBLOCK_SOURCE = 0x55 39 40 sizeofSockaddrStorage = 0x80 41 sizeofSockaddrInet = 0x10 42 sizeofInetPktinfo = 0xc 43 44 sizeofIPMreq = 0x8 45 sizeofIPMreqn = 0xc 46 sizeofIPMreqSource = 0xc 47 sizeofGroupReq = 0x84 48 sizeofGroupSourceReq = 0x104 49 ) 50 51 type sockaddrStorage struct { 52 Len uint8 53 Family uint8 54 X__ss_pad1 [6]int8 55 X__ss_align int64 56 X__ss_pad2 [112]int8 57 } 58 59 type sockaddrInet struct { 60 Len uint8 61 Family uint8 62 Port uint16 63 Addr [4]byte /* in_addr */ 64 Zero [8]int8 65 } 66 67 type inetPktinfo struct { 68 Ifindex uint32 69 Spec_dst [4]byte /* in_addr */ 70 Addr [4]byte /* in_addr */ 71 } 72 73 type ipMreq struct { 74 Multiaddr [4]byte /* in_addr */ 75 Interface [4]byte /* in_addr */ 76 } 77 78 type ipMreqn struct { 79 Multiaddr [4]byte /* in_addr */ 80 Address [4]byte /* in_addr */ 81 Ifindex int32 82 } 83 84 type ipMreqSource struct { 85 Multiaddr [4]byte /* in_addr */ 86 Sourceaddr [4]byte /* in_addr */ 87 Interface [4]byte /* in_addr */ 88 } 89 90 type groupReq struct { 91 Interface uint32 92 Pad_cgo_0 [128]byte 93 } 94 95 type groupSourceReq struct { 96 Interface uint32 97 Pad_cgo_0 [128]byte 98 Pad_cgo_1 [128]byte 99 }