diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-12-06 22:43:58 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-12-06 22:43:58 +0000 |
commit | 10f79b7211668fcbd6b9e76f73a757f79b25bcb3 (patch) | |
tree | 2516ae4f4d2ed52590d46da3e25d1a05fa382eb5 /pkg/tcpip/header/ndp_options.go | |
parent | b2e153db1d367345e9fa381ebf76bd92f04d384b (diff) | |
parent | ab3f7bc39392aaa7e7961ae6d82d94f2cae18adb (diff) |
Merge release-20191129.0-15-gab3f7bc (automated)
Diffstat (limited to 'pkg/tcpip/header/ndp_options.go')
-rwxr-xr-x | pkg/tcpip/header/ndp_options.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkg/tcpip/header/ndp_options.go b/pkg/tcpip/header/ndp_options.go index 2652e7b67..06e0bace2 100755 --- a/pkg/tcpip/header/ndp_options.go +++ b/pkg/tcpip/header/ndp_options.go @@ -17,6 +17,7 @@ package header import ( "encoding/binary" "errors" + "math" "time" "gvisor.dev/gvisor/pkg/tcpip" @@ -109,13 +110,13 @@ const ( ) var ( - // NDPInfiniteLifetime is a value that represents - // infinity for the Valid and Preferred Lifetime fields in a NDP Prefix - // Information option. Its value is (2^32 - 1)s = 4294967295s + // 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 * 4294967295 + NDPInfiniteLifetime = time.Second * math.MaxUint32 ) // NDPOptionIterator is an iterator of NDPOption. |