1 /** 2 * Copyright (c) 2019, The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing perNmissions and 14 * limitations under the License. 15 */ 16 package android.net.ip; 17 18 import android.net.Layer2InformationParcelable; 19 import android.net.ProxyInfo; 20 import android.net.ProvisioningConfigurationParcelable; 21 import android.net.NattKeepalivePacketDataParcelable; 22 import android.net.TcpKeepalivePacketDataParcelable; 23 24 /** @hide */ 25 oneway interface IIpClient { completedPreDhcpAction()26 void completedPreDhcpAction(); confirmConfiguration()27 void confirmConfiguration(); readPacketFilterComplete(in byte[] data)28 void readPacketFilterComplete(in byte[] data); shutdown()29 void shutdown(); startProvisioning(in ProvisioningConfigurationParcelable req)30 void startProvisioning(in ProvisioningConfigurationParcelable req); stop()31 void stop(); setTcpBufferSizes(in String tcpBufferSizes)32 void setTcpBufferSizes(in String tcpBufferSizes); setHttpProxy(in ProxyInfo proxyInfo)33 void setHttpProxy(in ProxyInfo proxyInfo); setMulticastFilter(boolean enabled)34 void setMulticastFilter(boolean enabled); addKeepalivePacketFilter(int slot, in TcpKeepalivePacketDataParcelable pkt)35 void addKeepalivePacketFilter(int slot, in TcpKeepalivePacketDataParcelable pkt); removeKeepalivePacketFilter(int slot)36 void removeKeepalivePacketFilter(int slot); 37 /* Group hint is the old name for cluster */ setL2KeyAndGroupHint(in String l2Key, in String cluster)38 void setL2KeyAndGroupHint(in String l2Key, in String cluster); addNattKeepalivePacketFilter(int slot, in NattKeepalivePacketDataParcelable pkt)39 void addNattKeepalivePacketFilter(int slot, in NattKeepalivePacketDataParcelable pkt); notifyPreconnectionComplete(boolean success)40 void notifyPreconnectionComplete(boolean success); updateLayer2Information(in Layer2InformationParcelable info)41 void updateLayer2Information(in Layer2InformationParcelable info); 42 } 43