tree: c9866412b9864b58dad59b24c964d0fb265b59d9 [path history] [tgz]
  1. dbus/
  2. dns/
  3. init/
  4. mcastd/
  5. ndproxyd/
  6. adb_proxy.cc
  7. adb_proxy.h
  8. address_manager.cc
  9. address_manager.h
  10. address_manager_test.cc
  11. arc_service.cc
  12. arc_service.h
  13. arc_service_test.cc
  14. broadcast_forwarder.cc
  15. broadcast_forwarder.h
  16. BUILD.gn
  17. counters_service.cc
  18. counters_service.h
  19. counters_service_fuzzer.cc
  20. counters_service_test.cc
  21. crostini_service.cc
  22. crostini_service.h
  23. datapath.cc
  24. datapath.h
  25. datapath_fuzzer.cc
  26. datapath_test.cc
  27. device.cc
  28. device.h
  29. fake_process_runner.h
  30. fake_shill_client.h
  31. firewall.cc
  32. firewall.h
  33. firewall_fuzzer.cc
  34. firewall_test.cc
  35. helper_process.cc
  36. helper_process.h
  37. ipc.proto
  38. libpatchpanel-util.pc.in
  39. mac_address_generator.cc
  40. mac_address_generator.h
  41. mac_address_generator_test.cc
  42. main.cc
  43. manager.cc
  44. manager.h
  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. net_util.cc
  63. net_util.h
  64. net_util_test.cc
  65. network_monitor_service.cc
  66. network_monitor_service.h
  67. network_monitor_service_test.cc
  68. OWNERS
  69. preinstall.sh
  70. README.md
  71. routing_service.cc
  72. routing_service.h
  73. routing_service_test.cc
  74. scoped_ns.cc
  75. scoped_ns.h
  76. shill_client.cc
  77. shill_client.h
  78. shill_client_test.cc
  79. socket.cc
  80. socket.h
  81. socket_forwarder.cc
  82. socket_forwarder.h
  83. socket_forwarder_test.cc
  84. subnet.cc
  85. subnet.h
  86. subnet_pool.cc
  87. subnet_pool.h
  88. subnet_pool_test.cc
  89. subnet_test.cc
  90. 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.