gvisor/pkg/tcpip/network
Ghanan Gowripalan c19e049f2c Check local address directly through NIC
Network endpoints that wish to check addresses on another NIC-local
network endpoint may now do so through the NetworkInterface.

This fixes a lock ordering issue between NIC removal and link
resolution. Before this change:

  NIC Removal takes the stack lock, neighbor cache lock then neighbor
  entries' locks.

  When performing IPv4 link resolution, we take the entry lock then ARP
  would try check IPv4 local addresses through the stack which tries to
  obtain the stack's lock.

Now that ARP can check IPv4 addreses through the NIC, we avoid the lock
ordering issue, while also removing the need for stack to lookup the
NIC.

PiperOrigin-RevId: 356034245
2021-02-06 09:09:19 -08:00
..
arp Check local address directly through NIC 2021-02-06 09:09:19 -08:00
fragmentation Make fragmentation return a reassembled PacketBuffer 2021-01-29 17:37:29 -08:00
hash Handle IPv6 Fragment & Routing extension headers 2020-03-26 14:05:39 -07:00
ip Refresh delayed report timers on query messages 2021-01-29 13:49:38 -08:00
ipv4 Check local address directly through NIC 2021-02-06 09:09:19 -08:00
ipv6 Check local address directly through NIC 2021-02-06 09:09:19 -08:00
testutil Change tcpip.Error to an interface 2021-01-28 17:59:58 -08:00
BUILD Refactor locally delivered packets 2021-02-05 16:47:11 -08:00
ip_test.go Check local address directly through NIC 2021-02-06 09:09:19 -08:00
multicast_group_test.go Fix simple mistakes identified by goreportcard. 2021-01-12 12:38:22 -08:00