| // Copyright 2024 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| { | |
| children: [ | |
| { | |
| name: "socket-proxy", | |
| url: "fuchsia-pkg://fuchsia.com/network-socket-proxy#meta/network-socket-proxy.cm", | |
| // TODO(https://fxbug.dev/417568023): Remove this once FDIO is updated to reconnect | |
| // to the socket provider protocol when it observes a FIDL channel closure. | |
| on_terminate: "reboot", | |
| }, | |
| ], | |
| offer: [ | |
| { | |
| // TODO(https://fxbug.dev/577224779): These components consume | |
| // unproxied (unmarked) sockets directly from netstack because they | |
| // need interface-scoped traffic rather than default-network | |
| // traffic. Replace this CML-level selection with a network | |
| // selection API. | |
| protocol: [ | |
| "fuchsia.posix.socket.Provider", | |
| "fuchsia.posix.socket.raw.Provider", | |
| ], | |
| from: "#netstack", | |
| to: [ | |
| "#dhcp-client", | |
| "#reachability", | |
| "#socket-proxy", | |
| ], | |
| }, | |
| { | |
| protocol: [ "fuchsia.posix.socket.Provider" ], | |
| from: "#socket-proxy", | |
| to: [ | |
| "#dhcpd", | |
| "#dhcpv6-client", | |
| "#dns-resolver", | |
| "#google-http-client", | |
| "#http-client", | |
| ], | |
| }, | |
| { | |
| protocol: [ "fuchsia.net.policy.properties.Networks" ], | |
| from: "#netcfg", | |
| to: "#socket-proxy", | |
| dependency: "weak", | |
| }, | |
| ], | |
| expose: [ | |
| { | |
| protocol: [ "fuchsia.net.policy.properties.NetworkRegistry" ], | |
| from: "#netcfg", | |
| availability: "optional", | |
| }, | |
| { | |
| protocol: [ | |
| "fuchsia.posix.socket.Provider", | |
| "fuchsia.posix.socket.raw.Provider", | |
| ], | |
| from: "#socket-proxy", | |
| }, | |
| { | |
| protocol: "fuchsia.posix.socket.Provider", | |
| from: "#netstack", | |
| as: "fuchsia.posix.socket.Provider_Unproxied", | |
| }, | |
| { | |
| protocol: "fuchsia.posix.socket.raw.Provider", | |
| from: "#netstack", | |
| as: "fuchsia.posix.socket.raw.Provider_Unproxied", | |
| }, | |
| { | |
| protocol: [ "fuchsia.net.reachability.Monitor" ], | |
| from: "#netcfg", | |
| }, | |
| ], | |
| } |