Package: android.system.net.netd@1.0

INetd

interface INetd

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

Properties

StatusCode

enum StatusCode: int32_t

Return values for INetd requests

Details
Members
OK
INVALID_ARGUMENTS
NO_NETWORK
ALREADY_EXISTS
PERMISSION_DENIED
UNKNOWN_ERROR

Methods

createOemNetwork

createOemNetwork ()
generates (uint64_t networkHandle, uint32_t packetMark, StatusCode status)

Creates a physical network to be used for interfaces managed by the OEM

Details
Generates
networkHandle
a handle to the OEM network.Zero implies no networks are available and created
packetMark
The packet mark that vendor network stack configuration code must use when routing packets to this network.No applications may use this mark.They must instead pass the networkHandle to the android_set*network LL-NDK APIs.
status
operation status
Annotations
entry
callflow
next= { "*" }

destroyOemNetwork

destroyOemNetwork (uint64_t networkHandle)
generates (StatusCode status)

Destroys the specified network previously created using createOemNetwork()

Details
Parameters
networkHandle
Generates
status
operation status
Annotations
exit
callflow
next="createOemNetwork"