diff options
author | Tyler Davis <tydavis@gmail.com> | 2018-02-28 23:00:21 +0000 |
---|---|---|
committer | Tyler Davis <tydavis@gmail.com> | 2018-02-28 23:00:21 +0000 |
commit | 0e8a5cebd8548bfe95c5c7808da7da0f651f0c3a (patch) | |
tree | 469486208835d832e16940bac58a06f32bd723d8 /vendor/golang.org/x/net/ipv6/payload.go | |
parent | 93b7b9300254e80dc7b17556b5d6a8b7d7e9607a (diff) | |
download | dnstracker-0e8a5cebd8548bfe95c5c7808da7da0f651f0c3a.tar.gz dnstracker-0e8a5cebd8548bfe95c5c7808da7da0f651f0c3a.zip |
Add dependencies
Diffstat (limited to 'vendor/golang.org/x/net/ipv6/payload.go')
-rw-r--r-- | vendor/golang.org/x/net/ipv6/payload.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/golang.org/x/net/ipv6/payload.go b/vendor/golang.org/x/net/ipv6/payload.go new file mode 100644 index 0000000..a8197f1 --- /dev/null +++ b/vendor/golang.org/x/net/ipv6/payload.go @@ -0,0 +1,23 @@ +// Copyright 2013 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 ipv6 + +import ( + "net" + + "golang.org/x/net/internal/socket" +) + +// BUG(mikio): On Windows, the ControlMessage for ReadFrom and WriteTo +// methods of PacketConn is not implemented. + +// A payloadHandler represents the IPv6 datagram payload handler. +type payloadHandler struct { + net.PacketConn + *socket.Conn + rawOpt +} + +func (c *payloadHandler) ok() bool { return c != nil && c.PacketConn != nil && c.Conn != nil } |