blob: 4a62c2d5c0c2c27ea20d2ff78dbe0adad5b3a7cb [file] [log] [blame]
Mikio Hara91e38ae2014-10-08 07:24:42 +09001// Created by cgo -godefs - DO NOT EDIT
2// 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 Harad6d144d2014-11-13 17:19:48 +090065 sysSizeofSockaddrStorage = 0x80
66 sysSizeofSockaddrInet6 = 0x1c
67 sysSizeofInet6Pktinfo = 0x14
68 sysSizeofIPv6Mtuinfo = 0x20
Mikio Hara91e38ae2014-10-08 07:24:42 +090069
Mikio Harad6d144d2014-11-13 17:19:48 +090070 sysSizeofIPv6Mreq = 0x14
71 sysSizeofGroupReq = 0x88
72 sysSizeofGroupSourceReq = 0x108
Mikio Hara91e38ae2014-10-08 07:24:42 +090073
74 sysSizeofICMPv6Filter = 0x20
75)
76
Mikio Harad6d144d2014-11-13 17:19:48 +090077type sysSockaddrStorage struct {
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 Hara91e38ae2014-10-08 07:24:42 +090085type sysSockaddrInet6 struct {
86 Len uint8
87 Family uint8
88 Port uint16
89 Flowinfo uint32
90 Addr [16]byte /* in6_addr */
91 Scope_id uint32
92}
93
94type sysInet6Pktinfo struct {
95 Addr [16]byte /* in6_addr */
96 Ifindex uint32
97}
98
99type sysIPv6Mtuinfo struct {
100 Addr sysSockaddrInet6
101 Mtu uint32
102}
103
104type sysIPv6Mreq struct {
105 Multiaddr [16]byte /* in6_addr */
106 Interface uint32
107}
108
Mikio Harad6d144d2014-11-13 17:19:48 +0900109type sysGroupReq struct {
110 Interface uint32
111 Pad_cgo_0 [4]byte
112 Group sysSockaddrStorage
113}
114
115type sysGroupSourceReq struct {
116 Interface uint32
117 Pad_cgo_0 [4]byte
118 Group sysSockaddrStorage
119 Source sysSockaddrStorage
120}
121
Mikio Hara91e38ae2014-10-08 07:24:42 +0900122type sysICMPv6Filter struct {
123 Filt [8]uint32
124}