1 ///////////////////////////////////////////////////////////////////////////////
2 // THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE.                          //
3 ///////////////////////////////////////////////////////////////////////////////
4 
5 // This file is a snapshot of an AIDL file. Do not edit it manually. There are
6 // two cases:
7 // 1). this is a frozen version file - do not edit this in any case.
8 // 2). this is a 'current' file. If you make a backwards compatible change to
9 //     the interface (from the latest frozen version), the build system will
10 //     prompt you to update this file with `m <name>-update-api`.
11 //
12 // You must not make a backward incompatible change to any AIDL file built
13 // with the aidl_interface module type with versions property set. The module
14 // type is used to build AIDL files in a way that they can be used across
15 // independently updatable components of the system. If a device is shipped
16 // with such a backward incompatible change, it has a high risk of breaking
17 // later when a module using the interface is updated, e.g., Mainline modules.
18 
19 package android.system.net.netd;
20 @VintfStability
21 interface INetd {
addInterfaceToOemNetwork(in long networkHandle, in String ifname)22   void addInterfaceToOemNetwork(in long networkHandle, in String ifname);
addRouteToOemNetwork(in long networkHandle, in String ifname, in String destination, in String nexthop)23   void addRouteToOemNetwork(in long networkHandle, in String ifname, in String destination, in String nexthop);
createOemNetwork()24   android.system.net.netd.INetd.OemNetwork createOemNetwork();
destroyOemNetwork(in long networkHandle)25   void destroyOemNetwork(in long networkHandle);
removeInterfaceFromOemNetwork(in long networkHandle, in String ifname)26   void removeInterfaceFromOemNetwork(in long networkHandle, in String ifname);
removeRouteFromOemNetwork(in long networkHandle, in String ifname, in String destination, in String nexthop)27   void removeRouteFromOemNetwork(in long networkHandle, in String ifname, in String destination, in String nexthop);
setForwardingBetweenInterfaces(in String inputIfName, in String outputIfName, in boolean enable)28   void setForwardingBetweenInterfaces(in String inputIfName, in String outputIfName, in boolean enable);
setIpForwardEnable(in boolean enable)29   void setIpForwardEnable(in boolean enable);
30   const int STATUS_INVALID_ARGUMENTS = 1;
31   const int STATUS_NO_NETWORK = 2;
32   const int STATUS_ALREADY_EXISTS = 3;
33   const int STATUS_PERMISSION_DENIED = 4;
34   const int STATUS_UNKNOWN_ERROR = 5;
35   parcelable OemNetwork {
36     long networkHandle;
37     int packetMark;
38   }
39 }
40