diff options
author | Ghanan Gowripalan <ghanan@google.com> | 2021-06-21 14:45:25 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-06-21 14:47:33 -0700 |
commit | 298cf30627afad13c245232e8e9f270b257e736f (patch) | |
tree | 239f4e2d2908faa55d18b5226855e9b5187b067f /pkg/tcpip/header/ndp_options.go | |
parent | 45cd7c1b1174dbeaebc1b52e20cb89927fb115ae (diff) |
Use fake clocks in NDP tests
Updates #5940.
PiperOrigin-RevId: 380668609
Diffstat (limited to 'pkg/tcpip/header/ndp_options.go')
-rw-r--r-- | pkg/tcpip/header/ndp_options.go | 5 |
1 files changed, 0 insertions, 5 deletions
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 ) |