OSDN Git Service

Send empty LinkProperties when entering StoppedState.
authorErik Kline <ek@google.com>
Wed, 6 Dec 2017 04:37:09 +0000 (13:37 +0900)
committerErik Kline <ek@google.com>
Thu, 7 Dec 2017 09:07:38 +0000 (18:07 +0900)
commitb3f9f4a30502477e71fc93037dc58080fddb1853
tree6d90144863f3b9f77afb82ff01a39b88abf909cc
parent86c995138379be76613408abdec07d34bb32cd58
Send empty LinkProperties when entering StoppedState.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - changing from DHCPv4 to static while continuously pinging the
      default gateway works jsut fine
    - dumpsys log shows that during the change we send the empty LP:
  12-06 08:46:51.085 - CMD_ON_QUIT wlan0/23 0 0 null [rcvd_in=StoppingState, proc_in=StoppingState]
  12-06 08:46:51.092 - INVOKE onLinkPropertiesChange({{InterfaceName: wlan0 LinkAddresses: []  Routes: [] DnsAddresses: [] Domains: null MTU: 0}})

Bug: 69800563
Change-Id: I01047e9a72fce718a167c592bf14406c3bab3ba9
services/net/java/android/net/ip/IpClient.java
tests/net/java/android/net/ip/IpManagerTest.java