summaryrefslogtreecommitdiffhomepage
path: root/runsc/boot
diff options
context:
space:
mode:
authorIan Gudger <igudger@google.com>2018-08-01 20:21:00 -0700
committerShentubot <shentubot@google.com>2018-08-01 20:22:02 -0700
commit3cd7824410302da00d1c8c8323db8959a124814a (patch)
treed9edb462a3e806007e139b2829a67ed492b1719d /runsc/boot
parent60add78980737a7330100d98bf6a214892dee3c0 (diff)
Move stack clock to options struct
PiperOrigin-RevId: 207039273 Change-Id: Ib8f55a6dc302052ab4a10ccd70b07f0d73b373df
Diffstat (limited to 'runsc/boot')
-rw-r--r--runsc/boot/loader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/boot/loader.go b/runsc/boot/loader.go
index 66394cdf8..2f976cd52 100644
--- a/runsc/boot/loader.go
+++ b/runsc/boot/loader.go
@@ -534,7 +534,7 @@ func newEmptyNetworkStack(conf *Config, clock tcpip.Clock) inet.Stack {
// NetworkNone sets up loopback using netstack.
netProtos := []string{ipv4.ProtocolName, ipv6.ProtocolName, arp.ProtocolName}
protoNames := []string{tcp.ProtocolName, udp.ProtocolName, ping.ProtocolName4}
- return &epsocket.Stack{stack.New(clock, netProtos, protoNames)}
+ return &epsocket.Stack{stack.New(netProtos, protoNames, stack.Options{Clock: clock})}
default:
panic(fmt.Sprintf("invalid network configuration: %v", conf.Network))