8 Commits
Author SHA1 Message Date
Bhasker HariharanandgVisor bot ae089adbb2 Add Leak checking to ipv4 tests.
PiperOrigin-RevId: 428946053
2022-02-15 20:53:01 -08:00
Adin ScannellandgVisor bot cbc2aa9482 Add checklocks annotations for ipv4 types.
PiperOrigin-RevId: 423959261
2022-01-24 18:19:49 -08:00
Nick BrownandgVisor bot 22a6a37079 Record counts of packets with unknown L3/L4 numbers
Previously, we recorded a single aggregated count. These per-protocol counts
can help us debug field issues when frames are dropped for this reason.

PiperOrigin-RevId: 405913911
2021-10-27 10:06:55 -07:00
Arthur SfezandgVisor bot 60bdf7ed31 Move multicounter testutil functions out of network/ip
This is in preparation of having aggregated NIC stats at the stack
level. These validation functions will be needed outside of the
network layer packages to test aggregated NIC stats.

PiperOrigin-RevId: 373180565
2021-05-11 10:25:33 -07:00
Ghanan GowripalanandgVisor bot 18e993eb4f Move network internal code to internal package
Utilities written to be common across IPv4/IPv6 are not planned to be
available for public use.

https://golang.org/doc/go1.4#internalpackages

PiperOrigin-RevId: 356554862
2021-02-09 11:52:31 -08:00
Ghanan GowripalanandgVisor bot daeb06d2cb Hide neighbor table kind from NetworkEndpoint
The network endpoint should not need to have logic to handle different
kinds of neighbor tables. Network endpoints can let the NIC know about
differnt neighbor discovery messages and let the NIC decide which table
to update.

This allows us to remove the LinkAddressCache interface.

PiperOrigin-RevId: 354812584
2021-01-31 10:03:46 -08:00
Arthur SfezandgVisor bot 39db3b9355 Add per endpoint ARP statistics
The ARP stat NetworkUnreachable was removed, and was replaced by
InterfaceHasNoLocalAddress. No stats are recorded when dealing with an
missing endpoint (ErrNotConnected) (because if there is no endpoint,
there is no valid per-endpoint stats).

PiperOrigin-RevId: 353759462
2021-01-25 16:52:05 -08:00
Arthur SfezandgVisor bot be17b94446 Per NIC NetworkEndpoint statistics
To facilitate the debugging of multi-homed setup, track Network
protocols statistics for each endpoint. Note that the original
stack-wide stats still exist.

A new type of statistic counter is introduced, which track two
versions of a stat at the same time. This lets a network endpoint
increment both the local stat and the stack-wide stat at the same
time.

Fixes #4605

PiperOrigin-RevId: 352663276
2021-01-19 15:07:39 -08:00