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
ssoTOS = iota // header field for unicast packet
10
ssoTTL // header field for unicast packet
11
ssoMulticastTTL // header field for multicast packet
12
ssoMulticastInterface // outbound interface for multicast packet
13
ssoMulticastLoopback // loopback for multicast packet
14
ssoReceiveTTL // header field on received packet
15
ssoReceiveDst // header field on received packet
16
ssoReceiveInterface // inbound interface on received packet
17
ssoPacketInfo // incbound or outbound packet path
18
ssoHeaderPrepend // ipv4 header prepend
19
ssoStripHeader // strip ipv4 header
20
ssoICMPFilter // icmp filter
21
ssoJoinGroup // any-source multicast
22
ssoLeaveGroup // any-source multicast
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
32
ssoTypeByte = iota + 1
42
// A sockOpt represents a binding for sticky socket option.
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