summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/stack.go
diff options
context:
space:
mode:
authorBruno Dal Bo <brunodalbo@google.com>2021-09-18 05:57:28 -0700
committergVisor bot <gvisor-bot@google.com>2021-09-18 06:00:35 -0700
commit09477db2bc0535c93a09442c6b5216497b3bc7db (patch)
treeb0b888c44ecf152e03d1f9226a862f2c09cfe7c9 /pkg/tcpip/stack/stack.go
parent21b38e8bcc2402d1324b5864853e1e12098f2443 (diff)
Avoid ambient clock on ICMP Rate Limiter
PiperOrigin-RevId: 397496920
Diffstat (limited to 'pkg/tcpip/stack/stack.go')
-rw-r--r--pkg/tcpip/stack/stack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/stack/stack.go b/pkg/tcpip/stack/stack.go
index 98867a828..428350f31 100644
--- a/pkg/tcpip/stack/stack.go
+++ b/pkg/tcpip/stack/stack.go
@@ -375,7 +375,7 @@ func New(opts Options) *Stack {
stats: opts.Stats.FillIn(),
handleLocal: opts.HandleLocal,
tables: opts.IPTables,
- icmpRateLimiter: NewICMPRateLimiter(),
+ icmpRateLimiter: NewICMPRateLimiter(clock),
seed: seed,
nudConfigs: opts.NUDConfigs,
uniqueIDGenerator: opts.UniqueID,