• Hugo Benichi's avatar
    arc: net: Add IP configs to all active network events · 8af596c9
    Hugo Benichi authored
    This patch adds to all active network events sent to ARC++ over mojo the
    complete IP v4 and v6 configurations of the host if they exist. This
    relies on the shill Device "IPConfigs" DBUS property which is the only
    consistent way to get current v4 and v6 configurations from shill.
    
    This allows to:
      - Correctly set DNS inside Android for the default network and all
      secondary networks.
      - Track inside Android WiFi roaming over the same prefix to avoid
      spurious network disconnection.
    
    BUG=b:112245108
    BUG=b:140812279
    BUG=b:143247361
    BUG=b:143258259
    TEST=Deployed Chrome and ARC++. Connected device to eth and wifi.
    Manually changed DNS between "Google" and manual entries both both eth
    (as the default network) and wifi. Observed that ARC++ consistently gets
    correct DNS settings for active network events.
    
    Change-Id: I40b654c5dba0fdf722971b7c12437991b1a5c374
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1892474
    Commit-Queue: Hugo Benichi <hugobenichi@google.com>
    Reviewed-by: default avatarHidehiko Abe <hidehiko@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#712850}
    8af596c9
arc_net_host_impl.cc 42.7 KB