From 298cf30627afad13c245232e8e9f270b257e736f Mon Sep 17 00:00:00 2001 From: Ghanan Gowripalan Date: Mon, 21 Jun 2021 14:45:25 -0700 Subject: Use fake clocks in NDP tests Updates #5940. PiperOrigin-RevId: 380668609 --- pkg/tcpip/header/ndp_options.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'pkg/tcpip/header') diff --git a/pkg/tcpip/header/ndp_options.go b/pkg/tcpip/header/ndp_options.go index d6cad3a94..b1f39e6e6 100644 --- a/pkg/tcpip/header/ndp_options.go +++ b/pkg/tcpip/header/ndp_options.go @@ -148,15 +148,10 @@ const ( // NDP option. That is, the length field for NDP options is in units of // 8 octets, as per RFC 4861 section 4.6. lengthByteUnits = 8 -) -var ( // NDPInfiniteLifetime is a value that represents infinity for the // 4-byte lifetime fields found in various NDP options. Its value is // (2^32 - 1)s = 4294967295s. - // - // This is a variable instead of a constant so that tests can change - // this value to a smaller value. It should only be modified by tests. NDPInfiniteLifetime = time.Second * math.MaxUint32 ) -- cgit v1.2.3