public class Nat464Xlat extends BaseNetworkObserver
Constructor and Description |
---|
Nat464Xlat(Context context,
INetworkManagementService nmService,
Handler handler,
NetworkAgentInfo nai) |
Modifier and Type | Method and Description |
---|---|
void |
fixupLinkProperties(LinkProperties oldLp)
Copies the stacked clat link in oldLp, if any, to the LinkProperties in mNetwork.
|
void |
interfaceLinkStateChanged(String iface,
boolean up) |
void |
interfaceRemoved(String iface) |
boolean |
isStarted()
Determines whether clatd is started.
|
static boolean |
requiresClat(NetworkAgentInfo nai)
Determines whether a network requires clat.
|
void |
start()
Starts the clat daemon.
|
void |
stop()
Stops the clat daemon.
|
addressRemoved, addressUpdated, interfaceAdded, interfaceClassDataActivityChanged, interfaceDnsServerInfo, interfaceStatusChanged, limitReached, routeRemoved, routeUpdated
public Nat464Xlat(Context context, INetworkManagementService nmService, Handler handler, NetworkAgentInfo nai)
public static boolean requiresClat(NetworkAgentInfo nai)
network
- the NetworkAgentInfo corresponding to the network.public boolean isStarted()
public void start()
public void stop()
public void fixupLinkProperties(LinkProperties oldLp)
public void interfaceLinkStateChanged(String iface, boolean up)
interfaceLinkStateChanged
in class BaseNetworkObserver
public void interfaceRemoved(String iface)
interfaceRemoved
in class BaseNetworkObserver