Project: /_project.yaml Book: /_book.yaml

fuchsia.netstack

PROTOCOLS

Netstack {:#Netstack}

Defined in fuchsia.netstack/netstack.fidl

GetPortForService {:#GetPortForService}

Finds the port number from a given service name and protocol. [service] can be a number like “42”, or a service name like “http”. If [protocol] is UNSPECIFIED, the service is checked for TCP first, then UDP.

Request

Response

GetAddress {:#GetAddress}

Finds the IP address for a given host name and port. This may issue network requests via DNS to look up domain names. E.g. GetAddress(“example.com”, 80) -> [{142.42.42.1}]

Request

Response

GetInterfaces {:#GetInterfaces}

Returns the list of registered network interfaces.

Request

Response

GetInterfaces2 {:#GetInterfaces2}

Request

Response

GetRouteTable {:#GetRouteTable}

Returns current route table.

Request

Response

GetRouteTable2 {:#GetRouteTable2}

Request

Response

SetInterfaceStatus {:#SetInterfaceStatus}

Sets the status (up or down) for the interface with the given nicid.

Request

SetInterfaceAddress {:#SetInterfaceAddress}

Sets the address for the interface with the given nicid. Masks off addr.PrefixLen bits from addr.Addr to set the subnet.

Request

Response

RemoveInterfaceAddress {:#RemoveInterfaceAddress}

Removes the address for the interface with the given nicid. Masks off addr.PrefixLen bits from addr.Addr to set the subnet.

Request

Response

SetInterfaceMetric {:#SetInterfaceMetric}

Sets the route metric for the interface with the given nicid.

Request

Response

BridgeInterfaces {:#BridgeInterfaces}

Creates a bridge and returns the newly created nicid or an error if the creation fails.

Request

Response

AddEthernetDevice {:#AddEthernetDevice}

Request

Response

GetDhcpClient {:#GetDhcpClient}

Request

Response

StartRouteTableTransaction {:#StartRouteTableTransaction}

Begin a route transaction for atomically getting and setting the route table. Returns true if a transaction can be started.

Request

Response

OnInterfacesChanged {:#OnInterfacesChanged}

Response

ResolverAdmin {:#ResolverAdmin}

Defined in fuchsia.netstack/netstack.fidl

SetNameServers {:#SetNameServers}

Request

RouteTableTransaction {:#RouteTableTransaction}

Defined in fuchsia.netstack/netstack.fidl

AddRoute {:#AddRoute}

Request

Response

DelRoute {:#DelRoute}

Request

Response

Netstack {:#Netstack}

Defined in fuchsia.netstack/netstack.fidl

GetPortForService {:#GetPortForService}

Finds the port number from a given service name and protocol. [service] can be a number like “42”, or a service name like “http”. If [protocol] is UNSPECIFIED, the service is checked for TCP first, then UDP.

Request

Response

GetAddress {:#GetAddress}

Finds the IP address for a given host name and port. This may issue network requests via DNS to look up domain names. E.g. GetAddress(“example.com”, 80) -> [{142.42.42.1}]

Request

Response

GetInterfaces {:#GetInterfaces}

Returns the list of registered network interfaces.

Request

Response

GetInterfaces2 {:#GetInterfaces2}

Request

Response

GetRouteTable {:#GetRouteTable}

Returns current route table.

Request

Response

GetRouteTable2 {:#GetRouteTable2}

Request

Response

SetInterfaceStatus {:#SetInterfaceStatus}

Sets the status (up or down) for the interface with the given nicid.

Request

SetInterfaceAddress {:#SetInterfaceAddress}

Sets the address for the interface with the given nicid. Masks off addr.PrefixLen bits from addr.Addr to set the subnet.

Request

Response

RemoveInterfaceAddress {:#RemoveInterfaceAddress}

Removes the address for the interface with the given nicid. Masks off addr.PrefixLen bits from addr.Addr to set the subnet.

Request

Response

SetInterfaceMetric {:#SetInterfaceMetric}

Sets the route metric for the interface with the given nicid.

Request

Response

BridgeInterfaces {:#BridgeInterfaces}

Creates a bridge and returns the newly created nicid or an error if the creation fails.

Request

Response

AddEthernetDevice {:#AddEthernetDevice}

Request

Response

GetDhcpClient {:#GetDhcpClient}

Request

Response

StartRouteTableTransaction {:#StartRouteTableTransaction}

Begin a route transaction for atomically getting and setting the route table. Returns true if a transaction can be started.

Request

Response

OnInterfacesChanged {:#OnInterfacesChanged}

Response

ResolverAdmin {:#ResolverAdmin}

Defined in fuchsia.netstack/netstack.fidl

SetNameServers {:#SetNameServers}

Request

RouteTableTransaction {:#RouteTableTransaction}

Defined in fuchsia.netstack/netstack.fidl

AddRoute {:#AddRoute}

Request

Response

DelRoute {:#DelRoute}

Request

Response

STRUCTS

Netstack_GetDhcpClient_Response {:#Netstack_GetDhcpClient_Response}

generated

NetErr {:#NetErr}

Defined in fuchsia.netstack/netstack.fidl

InterfaceConfig {:#InterfaceConfig}

Defined in fuchsia.netstack/netstack.fidl

NetInterface {:#NetInterface}

Defined in fuchsia.netstack/netstack.fidl

https://linux.die.net/man/7/netdevice

NetInterface2 {:#NetInterface2}

Defined in fuchsia.netstack/netstack.fidl

New version that includes a metric value.

RouteTableEntry {:#RouteTableEntry}

Defined in fuchsia.netstack/netstack.fidl

RouteTableEntry2 {:#RouteTableEntry2}

Defined in fuchsia.netstack/netstack.fidl

New version that includes a metric value.

SocketAddress {:#SocketAddress}

Defined in fuchsia.netstack/netstack.fidl

Netstack_GetDhcpClient_Response {:#Netstack_GetDhcpClient_Response}

generated

NetErr {:#NetErr}

Defined in fuchsia.netstack/netstack.fidl

InterfaceConfig {:#InterfaceConfig}

Defined in fuchsia.netstack/netstack.fidl

NetInterface {:#NetInterface}

Defined in fuchsia.netstack/netstack.fidl

https://linux.die.net/man/7/netdevice

NetInterface2 {:#NetInterface2}

Defined in fuchsia.netstack/netstack.fidl

New version that includes a metric value.

RouteTableEntry {:#RouteTableEntry}

Defined in fuchsia.netstack/netstack.fidl

RouteTableEntry2 {:#RouteTableEntry2}

Defined in fuchsia.netstack/netstack.fidl

New version that includes a metric value.

SocketAddress {:#SocketAddress}

Defined in fuchsia.netstack/netstack.fidl

ENUMS

Protocol {:#Protocol}

Type: uint32

Defined in fuchsia.netstack/netstack.fidl

Status {:#Status}

Type: uint32

Defined in fuchsia.netstack/netstack.fidl

Protocol {:#Protocol}

Type: uint32

Defined in fuchsia.netstack/netstack.fidl

Status {:#Status}

Type: uint32

Defined in fuchsia.netstack/netstack.fidl

UNIONS

Netstack_GetDhcpClient_Result {:#Netstack_GetDhcpClient_Result}

generated

IpAddressConfig {:#IpAddressConfig}

Defined in fuchsia.netstack/netstack.fidl

Netstack_GetDhcpClient_Result {:#Netstack_GetDhcpClient_Result}

generated

IpAddressConfig {:#IpAddressConfig}

Defined in fuchsia.netstack/netstack.fidl

CONSTANTS