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_openbsd.go |
| 3 | |
| 4 | package socket |
| 5 | |
| 6 | const ( |
| 7 | sysAF_UNSPEC = 0x0 |
| 8 | sysAF_INET = 0x2 |
| 9 | sysAF_INET6 = 0x18 |
| 10 | |
| 11 | sysSOCK_RAW = 0x3 |
| 12 | ) |
| 13 | |
| 14 | type iovec struct { |
| 15 | Base *byte |
| 16 | Len uint64 |
| 17 | } |
| 18 | |
| 19 | type msghdr struct { |
| 20 | Name *byte |
| 21 | Namelen uint32 |
| 22 | Pad_cgo_0 [4]byte |
| 23 | Iov *iovec |
| 24 | Iovlen uint32 |
| 25 | Pad_cgo_1 [4]byte |
| 26 | Control *byte |
| 27 | Controllen uint32 |
| 28 | Flags int32 |
| 29 | } |
| 30 | |
| 31 | type cmsghdr struct { |
| 32 | Len uint32 |
| 33 | Level int32 |
| 34 | Type int32 |
| 35 | } |
| 36 | |
| 37 | type sockaddrInet struct { |
| 38 | Len uint8 |
| 39 | Family uint8 |
| 40 | Port uint16 |
| 41 | Addr [4]byte /* in_addr */ |
| 42 | Zero [8]int8 |
| 43 | } |
| 44 | |
| 45 | type 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 | |
| 54 | const ( |
| 55 | sizeofIovec = 0x10 |
| 56 | sizeofMsghdr = 0x30 |
| 57 | sizeofCmsghdr = 0xc |
| 58 | |
| 59 | sizeofSockaddrInet = 0x10 |
| 60 | sizeofSockaddrInet6 = 0x1c |
| 61 | ) |