diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-08-17 19:48:58 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-17 19:48:58 +0000 |
commit | bc064d0878290cdab7b14d4d207d56c8902ae182 (patch) | |
tree | 9c4f9fefb6949af561b7829ecda460b817ca9a94 /pkg/tcpip/stack/stack.go | |
parent | 13546575552159b4bc62b8f7416a7b7173726c30 (diff) | |
parent | e3c4bbd10a93ac824af3204c520437f3d5ff470c (diff) |
Merge release-20200810.0-40-ge3c4bbd10 (automated)
Diffstat (limited to 'pkg/tcpip/stack/stack.go')
-rw-r--r-- | pkg/tcpip/stack/stack.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/pkg/tcpip/stack/stack.go b/pkg/tcpip/stack/stack.go index ae44cd5da..a3f87c8af 100644 --- a/pkg/tcpip/stack/stack.go +++ b/pkg/tcpip/stack/stack.go @@ -1102,19 +1102,6 @@ func (s *Stack) removeNICLocked(id tcpip.NICID) *tcpip.Error { return nic.remove() } -// NICAddressRanges returns a map of NICIDs to their associated subnets. -func (s *Stack) NICAddressRanges() map[tcpip.NICID][]tcpip.Subnet { - s.mu.RLock() - defer s.mu.RUnlock() - - nics := map[tcpip.NICID][]tcpip.Subnet{} - - for id, nic := range s.nics { - nics[id] = append(nics[id], nic.AddressRanges()...) - } - return nics -} - // NICInfo captures the name and addresses assigned to a NIC. type NICInfo struct { Name string |