diff options
author | Kevin Krakauer <krakauer@google.com> | 2019-02-22 13:33:49 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-02-22 13:34:47 -0800 |
commit | b75aa515044367094e762985a4b1a1f0580e3ad6 (patch) | |
tree | 426b486ae27b30c8e74b623f6904d3487eeeec2a /runsc/boot | |
parent | 532f4b2fbaf66382a3d9e118b5a7a3ee272c8edc (diff) |
Rename ping endpoints to icmp endpoints.
PiperOrigin-RevId: 235248572
Change-Id: I5b0538b6feb365a98712c2a2d56d856fe80a8a09
Diffstat (limited to 'runsc/boot')
-rw-r--r-- | runsc/boot/BUILD | 2 | ||||
-rw-r--r-- | runsc/boot/loader.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/runsc/boot/BUILD b/runsc/boot/BUILD index 540e99151..4984231d7 100644 --- a/runsc/boot/BUILD +++ b/runsc/boot/BUILD @@ -75,7 +75,7 @@ go_library( "//pkg/tcpip/network/ipv4", "//pkg/tcpip/network/ipv6", "//pkg/tcpip/stack", - "//pkg/tcpip/transport/ping", + "//pkg/tcpip/transport/icmp", "//pkg/tcpip/transport/tcp", "//pkg/tcpip/transport/udp", "//pkg/urpc", diff --git a/runsc/boot/loader.go b/runsc/boot/loader.go index 41f456af7..42fe6f312 100644 --- a/runsc/boot/loader.go +++ b/runsc/boot/loader.go @@ -51,7 +51,7 @@ import ( "gvisor.googlesource.com/gvisor/pkg/tcpip/network/ipv4" "gvisor.googlesource.com/gvisor/pkg/tcpip/network/ipv6" "gvisor.googlesource.com/gvisor/pkg/tcpip/stack" - "gvisor.googlesource.com/gvisor/pkg/tcpip/transport/ping" + "gvisor.googlesource.com/gvisor/pkg/tcpip/transport/icmp" "gvisor.googlesource.com/gvisor/pkg/tcpip/transport/tcp" "gvisor.googlesource.com/gvisor/pkg/tcpip/transport/udp" "gvisor.googlesource.com/gvisor/runsc/boot/filter" @@ -766,7 +766,7 @@ func newEmptyNetworkStack(conf *Config, clock tcpip.Clock) (inet.Stack, error) { case NetworkNone, NetworkSandbox: // NetworkNone sets up loopback using netstack. netProtos := []string{ipv4.ProtocolName, ipv6.ProtocolName, arp.ProtocolName} - protoNames := []string{tcp.ProtocolName, udp.ProtocolName, ping.ProtocolName4} + protoNames := []string{tcp.ProtocolName, udp.ProtocolName, icmp.ProtocolName4} s := epsocket.Stack{stack.New(netProtos, protoNames, stack.Options{ Clock: clock, Stats: epsocket.Metrics, |