diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-11-24 22:25:59 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-11-24 22:25:59 +0000 |
commit | 4dc3fa9c2e59167489252680cd08a96048ee3c8c (patch) | |
tree | 1d85118f8df852320e35ae57e70e985f86e3e1c1 /pkg/tcpip/stack/neighbor_cache.go | |
parent | 9d0cfd8a08305ceab2bfc4ba4b433fcb2afdc0c7 (diff) | |
parent | f90ab60a8a5ce9663a878c7cabcc4ad66922e265 (diff) |
Merge release-20201109.0-112-gf90ab60a8 (automated)
Diffstat (limited to 'pkg/tcpip/stack/neighbor_cache.go')
-rw-r--r-- | pkg/tcpip/stack/neighbor_cache.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkg/tcpip/stack/neighbor_cache.go b/pkg/tcpip/stack/neighbor_cache.go index 177bf5516..13ea2d1d9 100644 --- a/pkg/tcpip/stack/neighbor_cache.go +++ b/pkg/tcpip/stack/neighbor_cache.go @@ -24,9 +24,16 @@ import ( const neighborCacheSize = 512 // max entries per interface +// NeighborStats holds metrics for the neighbor table. +type NeighborStats struct { + // FailedEntryLookups counts the number of lookups performed on an entry in + // Failed state. + FailedEntryLookups *tcpip.StatCounter +} + // neighborCache maps IP addresses to link addresses. It uses the Least // Recently Used (LRU) eviction strategy to implement a bounded cache for -// dynmically acquired entries. It contains the state machine and configuration +// dynamically acquired entries. It contains the state machine and configuration // for running Neighbor Unreachability Detection (NUD). // // There are two types of entries in the neighbor cache: |