Source File
sockopt.go
Belonging Package
golang.org/x/net/ipv4
// Copyright 2014 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.package ipv4import// Sticky socket optionsconst (ssoTOS = iota // header field for unicast packetssoTTL // header field for unicast packetssoMulticastTTL // header field for multicast packetssoMulticastInterface // outbound interface for multicast packetssoMulticastLoopback // loopback for multicast packetssoReceiveTTL // header field on received packetssoReceiveDst // header field on received packetssoReceiveInterface // inbound interface on received packetssoPacketInfo // incbound or outbound packet pathssoHeaderPrepend // ipv4 header prependssoStripHeader // strip ipv4 headerssoICMPFilter // icmp filterssoJoinGroup // any-source multicastssoLeaveGroup // any-source multicastssoJoinSourceGroup // source-specific multicastssoLeaveSourceGroup // source-specific multicastssoBlockSourceGroup // any-source or source-specific multicastssoUnblockSourceGroup // any-source or source-specific multicastssoAttachFilter // attach BPF for filtering inbound traffic)// Sticky socket option value typesconst (ssoTypeIPMreq = iota + 1ssoTypeIPMreqnssoTypeGroupReqssoTypeGroupSourceReq)// A sockOpt represents a binding for sticky socket option.type sockOpt struct {socket.Optiontyp int // hint for option value type; optional}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |