class Stack

Defined at line 1244 of file fidling/gen/sdk/fidl/fuchsia.net.stack/fuchsia.net.stack/hlcpp/fuchsia/net/stack/cpp/fidl.h

Public Members

static const char[] Name_

Public Methods

void ~Stack ()
void AddForwardingEntry (::fuchsia::net::stack::ForwardingEntry entry, AddForwardingEntryCallback callback)

Add a new entry to the forwarding table.

If the table already contains an entry with the same subnet and

destination, an already exists error is returned.

void DelForwardingEntry (::fuchsia::net::stack::ForwardingEntry entry, DelForwardingEntryCallback callback)

Removes the forwarding entry. The entry must exactly match an entry in

the forwarding table, with the exception of the metric value, which is

ignored.

void SetDhcpClientEnabled (uint64_t id, bool enable, SetDhcpClientEnabledCallback callback)

Enables or disables the DHCP client on an interface.

TODO(https://fxbug.dev/42162065): Remove this once the DHCP client is moved

out of the netstack.

void BridgeInterfaces (::std::vector<uint64_t> interfaces, ::fidl::InterfaceRequest< ::fuchsia::net::interfaces::admin::Control> bridge)

Creates a bridge over the provided `interfaces`.

If the bridge can't be created, `bridge` is closed with a `BAD_PORT`

termination reason.

NOTE: We're shoehorning bridging into the `admin/Control` API and

reassigning meaning to `BAD_PORT` because we don't want to leak

bridging-specific errors there. The POR is that bridging is going to get

its own API at some point.

Bridge lifetime is controlled through the `bridge` handle.