1// Created by cgo -godefs - DO NOT EDIT 2// cgo -godefs defs_darwin.go 3 4package socket 5 6const ( 7 sysAF_UNSPEC = 0x0 8 sysAF_INET = 0x2 9 sysAF_INET6 = 0x1e 10 11 sysSOCK_RAW = 0x3 12) 13 14type iovec struct { 15 Base *byte 16 Len uint64 17} 18 19type msghdr struct { 20 Name *byte 21 Namelen uint32 22 Pad_cgo_0 [4]byte 23 Iov *iovec 24 Iovlen int32 25 Pad_cgo_1 [4]byte 26 Control *byte 27 Controllen uint32 28 Flags int32 29} 30 31type cmsghdr struct { 32 Len uint32 33 Level int32 34 Type int32 35} 36 37type sockaddrInet struct { 38 Len uint8 39 Family uint8 40 Port uint16 41 Addr [4]byte /* in_addr */ 42 Zero [8]int8 43} 44 45type sockaddrInet6 struct { 46 Len uint8 47 Family uint8 48 Port uint16 49 Flowinfo uint32 50 Addr [16]byte /* in6_addr */ 51 Scope_id uint32 52} 53 54const ( 55 sizeofIovec = 0x10 56 sizeofMsghdr = 0x30 57 sizeofCmsghdr = 0xc 58 59 sizeofSockaddrInet = 0x10 60 sizeofSockaddrInet6 = 0x1c 61) 62