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}

DEPRECATED: see devicesettings.fidl Returns the netstack's node name. 5: GetNodeName() -> (string node_name); Returns current route table.

Request

Response

GetRouteTable2 {:#GetRouteTable2}

Request

Response

GetStats {:#GetStats}

Request

Response

GetAggregateStats {:#GetAggregateStats}

Get stats for all NICs on the stack.

Request

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

SetDhcpClientStatus {:#SetDhcpClientStatus}

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

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

NetErr {:#NetErr}

Defined in fuchsia.netstack/netstack.fidl

NetTrafficStats {:#NetTrafficStats}

Defined in fuchsia.netstack/netstack.fidl

NetInterfaceStats {:#NetInterfaceStats}

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

UNIONS

IpAddressConfig {:#IpAddressConfig}

Defined in fuchsia.netstack/netstack.fidl

CONSTANTS