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