blob: 0a3875cc41a9e9e42cf082cd6d9734265670d5be [file] [log] [blame]
David K. Bainbridge215e0242017-09-05 23:18:24 -07001// Created by cgo -godefs - DO NOT EDIT
2// cgo -godefs defs_solaris.go
3
4package ipv4
5
6const (
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 = 0x9
16 sysIP_RECVSLLA = 0xa
17 sysIP_RECVTTL = 0xb
18
19 sysIP_MULTICAST_IF = 0x10
20 sysIP_MULTICAST_TTL = 0x11
21 sysIP_MULTICAST_LOOP = 0x12
22 sysIP_ADD_MEMBERSHIP = 0x13
23 sysIP_DROP_MEMBERSHIP = 0x14
24 sysIP_BLOCK_SOURCE = 0x15
25 sysIP_UNBLOCK_SOURCE = 0x16
26 sysIP_ADD_SOURCE_MEMBERSHIP = 0x17
27 sysIP_DROP_SOURCE_MEMBERSHIP = 0x18
28 sysIP_NEXTHOP = 0x19
29
30 sysIP_PKTINFO = 0x1a
31 sysIP_RECVPKTINFO = 0x1a
32 sysIP_DONTFRAG = 0x1b
33
34 sysIP_BOUND_IF = 0x41
35 sysIP_UNSPEC_SRC = 0x42
36 sysIP_BROADCAST_TTL = 0x43
37 sysIP_DHCPINIT_IF = 0x45
38
39 sysIP_REUSEADDR = 0x104
40 sysIP_DONTROUTE = 0x105
41 sysIP_BROADCAST = 0x106
42
43 sysMCAST_JOIN_GROUP = 0x29
44 sysMCAST_LEAVE_GROUP = 0x2a
45 sysMCAST_BLOCK_SOURCE = 0x2b
46 sysMCAST_UNBLOCK_SOURCE = 0x2c
47 sysMCAST_JOIN_SOURCE_GROUP = 0x2d
48 sysMCAST_LEAVE_SOURCE_GROUP = 0x2e
49
50 sizeofSockaddrStorage = 0x100
51 sizeofSockaddrInet = 0x10
52 sizeofInetPktinfo = 0xc
53
54 sizeofIPMreq = 0x8
55 sizeofIPMreqSource = 0xc
56 sizeofGroupReq = 0x104
57 sizeofGroupSourceReq = 0x204
58)
59
60type sockaddrStorage struct {
61 Family uint16
62 X_ss_pad1 [6]int8
63 X_ss_align float64
64 X_ss_pad2 [240]int8
65}
66
67type sockaddrInet struct {
68 Family uint16
69 Port uint16
70 Addr [4]byte /* in_addr */
71 Zero [8]int8
72}
73
74type inetPktinfo struct {
75 Ifindex uint32
76 Spec_dst [4]byte /* in_addr */
77 Addr [4]byte /* in_addr */
78}
79
80type ipMreq struct {
81 Multiaddr [4]byte /* in_addr */
82 Interface [4]byte /* in_addr */
83}
84
85type ipMreqSource struct {
86 Multiaddr [4]byte /* in_addr */
87 Sourceaddr [4]byte /* in_addr */
88 Interface [4]byte /* in_addr */
89}
90
91type groupReq struct {
92 Interface uint32
93 Pad_cgo_0 [256]byte
94}
95
96type groupSourceReq struct {
97 Interface uint32
98 Pad_cgo_0 [256]byte
99 Pad_cgo_1 [256]byte
100}