Mikio Hara | b1072ec | 2014-09-18 20:22:18 +0900 | [diff] [blame] | 1 | // Created by cgo -godefs - DO NOT EDIT |
| 2 | // cgo -godefs defs_openbsd.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 = 0x1e |
| 16 | sysIP_RECVTTL = 0x1f |
| 17 | |
| 18 | sysIP_MULTICAST_IF = 0x9 |
| 19 | sysIP_MULTICAST_TTL = 0xa |
| 20 | sysIP_MULTICAST_LOOP = 0xb |
| 21 | sysIP_ADD_MEMBERSHIP = 0xc |
| 22 | sysIP_DROP_MEMBERSHIP = 0xd |
| 23 | |
Mikio Hara | a14f429 | 2016-10-07 12:20:41 +0900 | [diff] [blame] | 24 | sizeofIPMreq = 0x8 |
Mikio Hara | b1072ec | 2014-09-18 20:22:18 +0900 | [diff] [blame] | 25 | ) |
| 26 | |
Mikio Hara | a14f429 | 2016-10-07 12:20:41 +0900 | [diff] [blame] | 27 | type ipMreq struct { |
Mikio Hara | b1072ec | 2014-09-18 20:22:18 +0900 | [diff] [blame] | 28 | Multiaddr [4]byte /* in_addr */ |
| 29 | Interface [4]byte /* in_addr */ |
| 30 | } |