Tobias Klauser | d28f0bd | 2019-06-13 11:12:16 +0200 | [diff] [blame^] | 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. |
Mikio Hara | 91e38ae | 2014-10-08 07:24:42 +0900 | [diff] [blame] | 2 | // cgo -godefs defs_freebsd.go |
| 3 | |
| 4 | package ipv6 |
| 5 | |
| 6 | const ( |
| 7 | sysIPV6_UNICAST_HOPS = 0x4 |
| 8 | sysIPV6_MULTICAST_IF = 0x9 |
| 9 | sysIPV6_MULTICAST_HOPS = 0xa |
| 10 | sysIPV6_MULTICAST_LOOP = 0xb |
| 11 | sysIPV6_JOIN_GROUP = 0xc |
| 12 | sysIPV6_LEAVE_GROUP = 0xd |
| 13 | sysIPV6_PORTRANGE = 0xe |
| 14 | sysICMP6_FILTER = 0x12 |
| 15 | |
| 16 | sysIPV6_CHECKSUM = 0x1a |
| 17 | sysIPV6_V6ONLY = 0x1b |
| 18 | |
| 19 | sysIPV6_IPSEC_POLICY = 0x1c |
| 20 | |
| 21 | sysIPV6_RTHDRDSTOPTS = 0x23 |
| 22 | |
| 23 | sysIPV6_RECVPKTINFO = 0x24 |
| 24 | sysIPV6_RECVHOPLIMIT = 0x25 |
| 25 | sysIPV6_RECVRTHDR = 0x26 |
| 26 | sysIPV6_RECVHOPOPTS = 0x27 |
| 27 | sysIPV6_RECVDSTOPTS = 0x28 |
| 28 | |
| 29 | sysIPV6_USE_MIN_MTU = 0x2a |
| 30 | sysIPV6_RECVPATHMTU = 0x2b |
| 31 | |
| 32 | sysIPV6_PATHMTU = 0x2c |
| 33 | |
| 34 | sysIPV6_PKTINFO = 0x2e |
| 35 | sysIPV6_HOPLIMIT = 0x2f |
| 36 | sysIPV6_NEXTHOP = 0x30 |
| 37 | sysIPV6_HOPOPTS = 0x31 |
| 38 | sysIPV6_DSTOPTS = 0x32 |
| 39 | sysIPV6_RTHDR = 0x33 |
| 40 | |
| 41 | sysIPV6_RECVTCLASS = 0x39 |
| 42 | |
| 43 | sysIPV6_AUTOFLOWLABEL = 0x3b |
| 44 | |
| 45 | sysIPV6_TCLASS = 0x3d |
| 46 | sysIPV6_DONTFRAG = 0x3e |
| 47 | |
| 48 | sysIPV6_PREFER_TEMPADDR = 0x3f |
| 49 | |
| 50 | sysIPV6_BINDANY = 0x40 |
| 51 | |
Mikio Hara | d6d144d | 2014-11-13 17:19:48 +0900 | [diff] [blame] | 52 | sysIPV6_MSFILTER = 0x4a |
| 53 | |
| 54 | sysMCAST_JOIN_GROUP = 0x50 |
| 55 | sysMCAST_LEAVE_GROUP = 0x51 |
| 56 | sysMCAST_JOIN_SOURCE_GROUP = 0x52 |
| 57 | sysMCAST_LEAVE_SOURCE_GROUP = 0x53 |
| 58 | sysMCAST_BLOCK_SOURCE = 0x54 |
| 59 | sysMCAST_UNBLOCK_SOURCE = 0x55 |
| 60 | |
Mikio Hara | 91e38ae | 2014-10-08 07:24:42 +0900 | [diff] [blame] | 61 | sysIPV6_PORTRANGE_DEFAULT = 0x0 |
| 62 | sysIPV6_PORTRANGE_HIGH = 0x1 |
| 63 | sysIPV6_PORTRANGE_LOW = 0x2 |
| 64 | |
Mikio Hara | 30df40a | 2016-10-07 12:21:11 +0900 | [diff] [blame] | 65 | sizeofSockaddrStorage = 0x80 |
| 66 | sizeofSockaddrInet6 = 0x1c |
| 67 | sizeofInet6Pktinfo = 0x14 |
| 68 | sizeofIPv6Mtuinfo = 0x20 |
Mikio Hara | 91e38ae | 2014-10-08 07:24:42 +0900 | [diff] [blame] | 69 | |
Mikio Hara | 30df40a | 2016-10-07 12:21:11 +0900 | [diff] [blame] | 70 | sizeofIPv6Mreq = 0x14 |
| 71 | sizeofGroupReq = 0x88 |
| 72 | sizeofGroupSourceReq = 0x108 |
Mikio Hara | 91e38ae | 2014-10-08 07:24:42 +0900 | [diff] [blame] | 73 | |
Mikio Hara | 30df40a | 2016-10-07 12:21:11 +0900 | [diff] [blame] | 74 | sizeofICMPv6Filter = 0x20 |
Mikio Hara | 91e38ae | 2014-10-08 07:24:42 +0900 | [diff] [blame] | 75 | ) |
| 76 | |
Mikio Hara | 30df40a | 2016-10-07 12:21:11 +0900 | [diff] [blame] | 77 | type sockaddrStorage struct { |
Mikio Hara | d6d144d | 2014-11-13 17:19:48 +0900 | [diff] [blame] | 78 | Len uint8 |
| 79 | Family uint8 |
| 80 | X__ss_pad1 [6]int8 |
| 81 | X__ss_align int64 |
| 82 | X__ss_pad2 [112]int8 |
| 83 | } |
| 84 | |
Mikio Hara | 30df40a | 2016-10-07 12:21:11 +0900 | [diff] [blame] | 85 | type sockaddrInet6 struct { |
Mikio Hara | 91e38ae | 2014-10-08 07:24:42 +0900 | [diff] [blame] | 86 | Len uint8 |
| 87 | Family uint8 |
| 88 | Port uint16 |
| 89 | Flowinfo uint32 |
| 90 | Addr [16]byte /* in6_addr */ |
| 91 | Scope_id uint32 |
| 92 | } |
| 93 | |
Mikio Hara | 30df40a | 2016-10-07 12:21:11 +0900 | [diff] [blame] | 94 | type inet6Pktinfo struct { |
Mikio Hara | 91e38ae | 2014-10-08 07:24:42 +0900 | [diff] [blame] | 95 | Addr [16]byte /* in6_addr */ |
| 96 | Ifindex uint32 |
| 97 | } |
| 98 | |
Mikio Hara | 30df40a | 2016-10-07 12:21:11 +0900 | [diff] [blame] | 99 | type ipv6Mtuinfo struct { |
| 100 | Addr sockaddrInet6 |
Mikio Hara | 91e38ae | 2014-10-08 07:24:42 +0900 | [diff] [blame] | 101 | Mtu uint32 |
| 102 | } |
| 103 | |
Mikio Hara | 30df40a | 2016-10-07 12:21:11 +0900 | [diff] [blame] | 104 | type ipv6Mreq struct { |
Mikio Hara | 91e38ae | 2014-10-08 07:24:42 +0900 | [diff] [blame] | 105 | Multiaddr [16]byte /* in6_addr */ |
| 106 | Interface uint32 |
| 107 | } |
| 108 | |
Mikio Hara | 30df40a | 2016-10-07 12:21:11 +0900 | [diff] [blame] | 109 | type groupReq struct { |
Mikio Hara | d6d144d | 2014-11-13 17:19:48 +0900 | [diff] [blame] | 110 | Interface uint32 |
| 111 | Pad_cgo_0 [4]byte |
Mikio Hara | 30df40a | 2016-10-07 12:21:11 +0900 | [diff] [blame] | 112 | Group sockaddrStorage |
Mikio Hara | d6d144d | 2014-11-13 17:19:48 +0900 | [diff] [blame] | 113 | } |
| 114 | |
Mikio Hara | 30df40a | 2016-10-07 12:21:11 +0900 | [diff] [blame] | 115 | type groupSourceReq struct { |
Mikio Hara | d6d144d | 2014-11-13 17:19:48 +0900 | [diff] [blame] | 116 | Interface uint32 |
| 117 | Pad_cgo_0 [4]byte |
Mikio Hara | 30df40a | 2016-10-07 12:21:11 +0900 | [diff] [blame] | 118 | Group sockaddrStorage |
| 119 | Source sockaddrStorage |
Mikio Hara | d6d144d | 2014-11-13 17:19:48 +0900 | [diff] [blame] | 120 | } |
| 121 | |
Mikio Hara | 30df40a | 2016-10-07 12:21:11 +0900 | [diff] [blame] | 122 | type icmpv6Filter struct { |
Mikio Hara | 91e38ae | 2014-10-08 07:24:42 +0900 | [diff] [blame] | 123 | Filt [8]uint32 |
| 124 | } |