OSDN Git Service

IpConn metrics: distinguish NUD_FAILED answers
authorHugo Benichi <hugobenichi@google.com>
Wed, 22 Jun 2016 08:01:43 +0000 (17:01 +0900)
committerHugo Benichi <hugobenichi@google.com>
Thu, 7 Jul 2016 06:58:28 +0000 (15:58 +0900)
commit0d1c65b221dee1ef80a03c25877e7fd58fc106de
treef0a8124df1945bf5e6b6571f7494090dcf89d0d9
parent018a2058246d1f034d25adbd69502e6b2eb81fc7
IpConn metrics: distinguish NUD_FAILED answers

This patch adds in IpReachabilityMonitor a timestamp variable set
everytime that probeAll() send NUD probe requests to RTNETLINK.
This allows to distinguish between:
  1) NUD_FAILED events resulting from such a forced NUD probe
  2) "organic" NUD_FAILED notifications from the kernel

This distinction is added to IpReachabilityEvent as a one-bit flag.

This patch also changes the formatting of ApfProgramEvent flags to use
'|' as a joining character, similarly to other flags formatting.

Bug: 21859053
Change-Id: I24c64a3f17fa283eace5bd0a05c21a90a2305359
core/java/android/net/metrics/ApfProgramEvent.java
core/java/android/net/metrics/IpReachabilityEvent.java
services/net/java/android/net/ip/IpReachabilityMonitor.java