tree: 429ee9ebc77e0882b0026281f90a8fd95a60cfc4 [path history] [tgz]
  1. BUILD.gn
  2. OWNERS
  3. README.md
  4. adb_proxy.cc
  5. adb_proxy.h
  6. address_manager.cc
  7. address_manager.h
  8. address_manager_test.cc
  9. arc_service.cc
  10. arc_service.h
  11. arc_service_test.cc
  12. broadcast_forwarder.cc
  13. broadcast_forwarder.h
  14. counters_service.cc
  15. counters_service.h
  16. counters_service_test.cc
  17. crostini_service.cc
  18. crostini_service.h
  19. datapath.cc
  20. datapath.h
  21. datapath_fuzzer.cc
  22. datapath_test.cc
  23. dbus/
  24. device.cc
  25. device.h
  26. dns/
  27. fake_process_runner.h
  28. fake_shill_client.h
  29. firewall.cc
  30. firewall.h
  31. firewall_fuzzer.cc
  32. firewall_test.cc
  33. helper_process.cc
  34. helper_process.h
  35. init/
  36. ipc.proto
  37. libpatchpanel-util.pc.in
  38. mac_address_generator.cc
  39. mac_address_generator.h
  40. mac_address_generator_test.cc
  41. main.cc
  42. manager.cc
  43. manager.h
  44. mcastd/
  45. message_dispatcher.cc
  46. message_dispatcher.h
  47. minijailed_process_runner.cc
  48. minijailed_process_runner.h
  49. minijailed_process_runner_test.cc
  50. mock_datapath.h
  51. mock_firewall.cc
  52. mock_firewall.h
  53. multicast_forwarder.cc
  54. multicast_forwarder.h
  55. multicast_forwarder_fuzzer.cc
  56. multicast_proxy.cc
  57. multicast_proxy.h
  58. ndproxy.cc
  59. ndproxy.h
  60. ndproxy_fuzzer.cc
  61. ndproxy_test.cc
  62. ndproxyd/
  63. net_util.cc
  64. net_util.h
  65. net_util_test.cc
  66. network_monitor_service.cc
  67. network_monitor_service.h
  68. network_monitor_service_test.cc
  69. preinstall.sh
  70. routing_service.cc
  71. routing_service.h
  72. routing_service_test.cc
  73. scoped_ns.cc
  74. scoped_ns.h
  75. shill_client.cc
  76. shill_client.h
  77. shill_client_test.cc
  78. socket.cc
  79. socket.h
  80. socket_forwarder.cc
  81. socket_forwarder.h
  82. socket_forwarder_test.cc
  83. subnet.cc
  84. subnet.h
  85. subnet_pool.cc
  86. subnet_pool.h
  87. subnet_pool_test.cc
  88. subnet_test.cc
  89. traffic_forwarder.h
patchpanel/README.md

Patchpanel

This directory contains the Patchpanel platform networking service daemon (formerly arc-networkd).

Patchpanel is the network control plane manager for all guest application platforms running inside virtual machines (ARCVM, Termina, PluginVM) or containers (ARC++). Patchpanel configures and controls the network datapath for these guest platforms and provides additional services and features:

  • Creation and configuration of virtual ethernet interface pairs for ARC++.
  • Creation and configuration of TAP devices for CrosVM (ARCVM, Termina and PluginVM).
  • Configuration of source NAT and IP forwarding for all guest platforms, and configuration of inbound firewall destination NAT rules for ARC.
  • IPv6 NDProxy forwarder implementing RFC 4389 and proxying ICMPv6 traffic between physical networks and guest platforms.
  • mDNS forwarder proxying mDNS traffic between physical networks and guest platforms in both directions, with additional facilities for transparent traversal over IPv4 SNAT.
  • SSDP forwarder proxying SSDP traffic between physical networks and guest platforms.
  • ADB-over-TCP proxy relaying ADB inbound connections and Crostini ADB-sideloading connections to ARC.
  • Broadcast forwarder proxying broadcast packets between physical networks and ARC.

Patchpanel's IPv6 NDProxy and mDNS/SSDP forwarders also run as standalone binaries inside Termina for providing these features to user lxd containers.

In addition Patchpanel implements other general networking services and features not associated with virtualization:

  • A ConnectNamespace D-Bus API for creating a virtual datapath and configuring routing for a network namespace. This API is currently used by:
    • The authenticated web proxy relay that transparently supports web proxy authentication for proxy aware web clients on the host platform or in guest application platforms.
  • A ModifyPortRule D-Bus API for opening destination ports in the inbound firewall rules and for forwarding destination ports to guest application platforms.
  • Traffic counters for measuring network usage for a variety of sources (Chrome, system, guest application platforms, ...). Counters are polled by shill with the GetTrafficCounters D-Bus API for implementing Service network usage metering.