aboutsummaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/net/icmp/listen_stub.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-04-25 09:28:54 +0200
committerDimitri Sokolyuk <demon@dim13.org>2018-04-25 09:28:54 +0200
commite1e8d058a33f7566f9c565d04b0d8b56f9645c35 (patch)
treeddd8a705efdc02cc8968eac7410aa8fd045e2a28 /vendor/golang.org/x/net/icmp/listen_stub.go
parent45109e77b62e40bb973b68412b94017bd7130754 (diff)
add vendor
Diffstat (limited to 'vendor/golang.org/x/net/icmp/listen_stub.go')
-rw-r--r--vendor/golang.org/x/net/icmp/listen_stub.go33
1 files changed, 33 insertions, 0 deletions
diff --git a/vendor/golang.org/x/net/icmp/listen_stub.go b/vendor/golang.org/x/net/icmp/listen_stub.go
new file mode 100644
index 0000000..668728d
--- /dev/null
+++ b/vendor/golang.org/x/net/icmp/listen_stub.go
@@ -0,0 +1,33 @@
+// 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.
+
+// +build nacl plan9
+
+package icmp
+
+// ListenPacket listens for incoming ICMP packets addressed to
+// address. See net.Dial for the syntax of address.
+//
+// For non-privileged datagram-oriented ICMP endpoints, network must
+// be "udp4" or "udp6". The endpoint allows to read, write a few
+// limited ICMP messages such as echo request and echo reply.
+// Currently only Darwin and Linux support this.
+//
+// Examples:
+// ListenPacket("udp4", "192.168.0.1")
+// ListenPacket("udp4", "0.0.0.0")
+// ListenPacket("udp6", "fe80::1%en0")
+// ListenPacket("udp6", "::")
+//
+// For privileged raw ICMP endpoints, network must be "ip4" or "ip6"
+// followed by a colon and an ICMP protocol number or name.
+//
+// Examples:
+// ListenPacket("ip4:icmp", "192.168.0.1")
+// ListenPacket("ip4:1", "0.0.0.0")
+// ListenPacket("ip6:ipv6-icmp", "fe80::1%en0")
+// ListenPacket("ip6:58", "::")
+func ListenPacket(network, address string) (*PacketConn, error) {
+ return nil, errOpNoSupport
+}