Create a guest VLAN network with a host flag.

From the host:
 - A new flag is added to switch from guest vlan/no-vlan.
 - no-vlan runs the same network configuration as before.
 - vlan exposes just the one tap device to qemu.
 - The default is to not use it, but in the future the host could use
   capability_query to decide what to set as the default.

From the guest:
 - ip_link_add is replaced with a single setup_network binary
 - setup_network uses a flag as a signal for vlan/no-vlan
 - no-vlan has the same behavior as the previous network configuration
 - vlan configures the mobile and wifi vlans
 - using a network namespace is possible future work

Bug: 111320496
Test: Ran cf_x86_phone-userdebug with and without vlans on a host.
Change-Id: I47cf4e1b1c70a339218d24053f29ffbcf9887263
Merged-In: I47cf4e1b1c70a339218d24053f29ffbcf9887263
8 files changed
tree: 10c3ab01cab5a8f897b052e664fef44d9839c492
  1. common/
  2. guest/
  3. host/
  4. tests/
  5. tools/
  6. Android.bp
  7. Android.mk
  8. OWNERS