1
// Copyright 2014 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
7
// Sticky socket options
9
ssoTrafficClass = iota // header field for unicast packet, RFC 3542
10
ssoHopLimit // header field for unicast packet, RFC 3493
11
ssoMulticastInterface // outbound interface for multicast packet, RFC 3493
12
ssoMulticastHopLimit // header field for multicast packet, RFC 3493
13
ssoMulticastLoopback // loopback for multicast packet, RFC 3493
14
ssoReceiveTrafficClass // header field on received packet, RFC 3542
15
ssoReceiveHopLimit // header field on received packet, RFC 2292 or 3542
16
ssoReceivePacketInfo // incbound or outbound packet path, RFC 2292 or 3542
17
ssoReceivePathMTU // path mtu, RFC 3542
18
ssoPathMTU // path mtu, RFC 3542
19
ssoChecksum // packet checksum, RFC 2292 or 3542
20
ssoICMPFilter // icmp filter, RFC 2292 or 3542
21
ssoJoinGroup // any-source multicast, RFC 3493
22
ssoLeaveGroup // any-source multicast, RFC 3493
23
ssoJoinSourceGroup // source-specific multicast
24
ssoLeaveSourceGroup // source-specific multicast
25
ssoBlockSourceGroup // any-source or source-specific multicast
26
ssoUnblockSourceGroup // any-source or source-specific multicast
30
// Sticky socket option value types
41
// A sockOpt represents a binding for sticky socket option.
43
level int // option level
44
name int // option name, must be equal or greater than 1
45
typ int // option value type, must be equal or greater than 1