diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-02-06 18:52:41 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-02-06 18:52:41 +0000 |
commit | 3bb7df3f6b58485cd6afa4fe4a3cda3a5e0fdfd2 (patch) | |
tree | ff0a601235ae1fe6697854c0c41950b1396b08b2 /pkg/tcpip/stack/nic.go | |
parent | 89218937bf477f73c44db44b1d1f5bd78af13f4d (diff) | |
parent | a83c8585aff55fb5fa2b8b61bf8e1c79d23d59bf (diff) |
Merge release-20210125.0-93-ga83c8585a (automated)
Diffstat (limited to 'pkg/tcpip/stack/nic.go')
-rw-r--r-- | pkg/tcpip/stack/nic.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pkg/tcpip/stack/nic.go b/pkg/tcpip/stack/nic.go index 6c09ba5ff..f85652093 100644 --- a/pkg/tcpip/stack/nic.go +++ b/pkg/tcpip/stack/nic.go @@ -190,13 +190,7 @@ func newNIC(stack *Stack, id tcpip.NICID, name string, ep LinkEndpoint, ctx NICC } if stack.useNeighborCache { - l.neighborTable = &neighborCache{ - nic: nic, - state: NewNUDState(stack.nudConfigs, stack.randomGenerator), - linkRes: r, - - cache: make(map[tcpip.Address]*neighborEntry, neighborCacheSize), - } + l.neighborTable = newNeighborCache(nic, r) } else { cache := new(linkAddrCache) cache.init(nic, ageLimit, resolutionTimeout, resolutionAttempts, r) |