gvisor/pkg/tcpip/network/ipv4
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
..
BUILD Make fragmentation return a reassembled PacketBuffer 2021-01-29 17:37:29 -08:00
icmp.go Check local address directly through NIC 2021-02-06 09:09:19 -08:00
igmp.go Clear IGMPv1 present flag on NIC down 2021-01-29 16:10:49 -08:00
igmp_test.go Clear IGMPv1 present flag on NIC down 2021-01-29 16:10:49 -08:00
ipv4.go Batch write packets after iptables checks 2021-02-05 18:44:04 -08:00
ipv4_test.go Make fragmentation return a reassembled PacketBuffer 2021-01-29 17:37:29 -08:00
stats.go Add per endpoint ARP statistics 2021-01-25 16:52:05 -08:00
stats_test.go Hide neighbor table kind from NetworkEndpoint 2021-01-31 10:03:46 -08:00