blob: 490ce7cf1044c085f2569f707b83d84a8a21178d [file] [log] [blame]
Tobias Klauserd28f0bd2019-06-13 11:12:16 +02001// Code generated by cmd/cgo -godefs; DO NOT EDIT.
Mikio Hara91e38ae2014-10-08 07:24:42 +09002// cgo -godefs defs_freebsd.go
3
4package ipv6
5
6const (
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 Harad6d144d2014-11-13 17:19:48 +090052 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 Hara91e38ae2014-10-08 07:24:42 +090061 sysIPV6_PORTRANGE_DEFAULT = 0x0
62 sysIPV6_PORTRANGE_HIGH = 0x1
63 sysIPV6_PORTRANGE_LOW = 0x2
64
Mikio Hara30df40a2016-10-07 12:21:11 +090065 sizeofSockaddrStorage = 0x80
66 sizeofSockaddrInet6 = 0x1c
67 sizeofInet6Pktinfo = 0x14
68 sizeofIPv6Mtuinfo = 0x20
Mikio Hara91e38ae2014-10-08 07:24:42 +090069
Mikio Hara30df40a2016-10-07 12:21:11 +090070 sizeofIPv6Mreq = 0x14
71 sizeofGroupReq = 0x88
72 sizeofGroupSourceReq = 0x108
Mikio Hara91e38ae2014-10-08 07:24:42 +090073
Mikio Hara30df40a2016-10-07 12:21:11 +090074 sizeofICMPv6Filter = 0x20
Mikio Hara91e38ae2014-10-08 07:24:42 +090075)
76
Mikio Hara30df40a2016-10-07 12:21:11 +090077type sockaddrStorage struct {
Mikio Harad6d144d2014-11-13 17:19:48 +090078 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 Hara30df40a2016-10-07 12:21:11 +090085type sockaddrInet6 struct {
Mikio Hara91e38ae2014-10-08 07:24:42 +090086 Len uint8
87 Family uint8
88 Port uint16
89 Flowinfo uint32
90 Addr [16]byte /* in6_addr */
91 Scope_id uint32
92}
93
Mikio Hara30df40a2016-10-07 12:21:11 +090094type inet6Pktinfo struct {
Mikio Hara91e38ae2014-10-08 07:24:42 +090095 Addr [16]byte /* in6_addr */
96 Ifindex uint32
97}
98
Mikio Hara30df40a2016-10-07 12:21:11 +090099type ipv6Mtuinfo struct {
100 Addr sockaddrInet6
Mikio Hara91e38ae2014-10-08 07:24:42 +0900101 Mtu uint32
102}
103
Mikio Hara30df40a2016-10-07 12:21:11 +0900104type ipv6Mreq struct {
Mikio Hara91e38ae2014-10-08 07:24:42 +0900105 Multiaddr [16]byte /* in6_addr */
106 Interface uint32
107}
108
Mikio Hara30df40a2016-10-07 12:21:11 +0900109type groupReq struct {
Mikio Harad6d144d2014-11-13 17:19:48 +0900110 Interface uint32
111 Pad_cgo_0 [4]byte
Mikio Hara30df40a2016-10-07 12:21:11 +0900112 Group sockaddrStorage
Mikio Harad6d144d2014-11-13 17:19:48 +0900113}
114
Mikio Hara30df40a2016-10-07 12:21:11 +0900115type groupSourceReq struct {
Mikio Harad6d144d2014-11-13 17:19:48 +0900116 Interface uint32
117 Pad_cgo_0 [4]byte
Mikio Hara30df40a2016-10-07 12:21:11 +0900118 Group sockaddrStorage
119 Source sockaddrStorage
Mikio Harad6d144d2014-11-13 17:19:48 +0900120}
121
Mikio Hara30df40a2016-10-07 12:21:11 +0900122type icmpv6Filter struct {
Mikio Hara91e38ae2014-10-08 07:24:42 +0900123 Filt [8]uint32
124}