Package: android.system.net.netd@1.1

INetd

interface INetd extends @1.0::INetd

This is the root of the HAL module and is the interface returned when loading an implementation of the INetd HAL.

Methods

addRouteToOemNetwork

addRouteToOemNetwork (uint64_t networkHandle, string ifname, string destination, string nexthop)
generates (StatusCode status)

Add route to a specified OEM network Either both, or one of the ifname and nexthop must be specified.

Details
Parameters
networkHandle
Handle to the OEM network previously returned from@1.0::createOemNetwork.
ifname
Interface name specified by the route, or an empty string for a route that does not specify an interface.For e.g."dummy0"
destination
The destination prefix of the route in CIDR notation.For e.g.192.0.2.0/24 or 2001:db8:1::/48.
nexthop
IP address of the gateway for the route, or an empty string for a directly-connected route.If non-empty, must be of the same address family as the destination.For e.g.10.0.0.1 or 2001:db8:1::cafe.
Generates
status
Annotations
callflow
next= { "*" }

removeRouteFromOemNetwork

removeRouteFromOemNetwork (uint64_t networkHandle, string ifname, string destination, string nexthop)
generates (StatusCode status)

Remove route from a specified OEM network.Either both, or one of the ifname and nexthop must be specified.

Details
Parameters
networkHandle
Handle to the OEM network previously returned from@1.0::createOemNetwork.
ifname
Interface name specified by the route, or an empty string for a route that does not specify an interface.For e.g."dummy0"
destination
The destination prefix of the route in CIDR notation.For e.g.192.0.2.0/24 or 2001:db8:1::/48.
nexthop
IP address of the gateway for the route, or an empty string for a directly-connected route.If non-empty, must be of the same address family as the destination.For e.g.10.0.0.1 or 2001:db8:1::cafe.
Generates
status
Annotations
callflow
next= { "*" }

addInterfaceToOemNetwork

addInterfaceToOemNetwork (uint64_t networkHandle, string ifname)
generates (StatusCode status)

Add interface to a specified OEM network

Details
Parameters
networkHandle
Handle to the OEM network previously returned from@1.0::createOemNetwork.
ifname
Interface name to add to the OEM network.For e.g."dummy0".
Generates
status
Annotations
callflow
next= { "*" }

removeInterfaceFromOemNetwork

removeInterfaceFromOemNetwork (uint64_t networkHandle, string ifname)
generates (StatusCode status)

Remove interface from a specified OEM network.

Details
Parameters
networkHandle
Handle to the OEM network previously returned from@1.0::createOemNetwork.
ifname
Interface name to remove from the OEM network.For e.g."dummy0".
Generates
status
Annotations
callflow
next= { "*" }

setIpForwardEnable

setIpForwardEnable (bool enable)
generates (StatusCode status)

Enable IP forwarding on the system.Client must disable forwarding when it's no longer needed.

Details
Parameters
enable
bool to enable or disable forwarding.
Generates
status
Annotations
callflow
next= { "*" }

setForwardingBetweenInterfaces

setForwardingBetweenInterfaces (string inputIfName, string outputIfName, bool enable)
generates (StatusCode status)

Enables forwarding between two interfaces, one of which must be in an OEM network.

Details
Parameters
inputIfName
Input interface.For e.g."dummy0".
outputIfName
Output interface.For e.g."rmnet_data7".
enable
bool to enable or disable forwarding between the two interfaces.
Generates
status
Annotations
callflow
next= { "*" }