From 9530f624e971183a0e72fe5123f542e0a4e1b329 Mon Sep 17 00:00:00 2001 From: Ghanan Gowripalan Date: Sat, 6 Feb 2021 09:47:26 -0800 Subject: Unexpose NIC The NIC structure is not to be used outside of the stack package directly. PiperOrigin-RevId: 356036737 --- pkg/tcpip/stack/linkaddrcache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/tcpip/stack/linkaddrcache.go') diff --git a/pkg/tcpip/stack/linkaddrcache.go b/pkg/tcpip/stack/linkaddrcache.go index 5b6b58b1d..9ec04dd50 100644 --- a/pkg/tcpip/stack/linkaddrcache.go +++ b/pkg/tcpip/stack/linkaddrcache.go @@ -30,7 +30,7 @@ const linkAddrCacheSize = 512 // max cache entries // // This struct is safe for concurrent use. type linkAddrCache struct { - nic *NIC + nic *nic linkRes LinkAddressResolver @@ -280,7 +280,7 @@ func (c *linkAddrCache) checkLinkRequest(now time.Time, k tcpip.Address, attempt return true } -func (c *linkAddrCache) init(nic *NIC, ageLimit, resolutionTimeout time.Duration, resolutionAttempts int, linkRes LinkAddressResolver) { +func (c *linkAddrCache) init(nic *nic, ageLimit, resolutionTimeout time.Duration, resolutionAttempts int, linkRes LinkAddressResolver) { *c = linkAddrCache{ nic: nic, linkRes: linkRes, -- cgit v1.2.3