diff options
author | Xiao Ma <xiaom@google.com> | 2019-07-19 10:39:06 +0900 |
---|---|---|
committer | Xiao Ma <xiaom@google.com> | 2019-12-04 17:28:33 +0900 |
commit | 4a8d1d42b52223cb81ecacb60cc578aeb4452fd5 (patch) | |
tree | 11bc7944d63afbb5f61665c05caa239c4ec03aad /common/networkstackclient | |
parent | 0656b1be55e323126ab267fe4dcfdbc6fa03ab05 (diff) |
Add DHCP Rapid Commit FILS support.
Bug: 140223017
Test: atest FrameworksNetTests NetworkStackTests
Test: atest NetworkStackIntegrationTests
Test: manual
Change-Id: Ibf200891c9742825a599a21b43f02927869f98ab
Diffstat (limited to 'common/networkstackclient')
5 files changed, 32 insertions, 1 deletions
diff --git a/common/networkstackclient/Android.bp b/common/networkstackclient/Android.bp index d41b470..c1ad011 100644 --- a/common/networkstackclient/Android.bp +++ b/common/networkstackclient/Android.bp @@ -50,6 +50,7 @@ aidl_interface { "src/android/net/INetworkStackConnector.aidl", "src/android/net/INetworkStackStatusCallback.aidl", "src/android/net/InitialConfigurationParcelable.aidl", + "src/android/net/Layer2PacketParcelable.aidl", "src/android/net/NattKeepalivePacketDataParcelable.aidl", "src/android/net/PrivateDnsConfigParcel.aidl", "src/android/net/ProvisioningConfigurationParcelable.aidl", diff --git a/common/networkstackclient/src/android/net/Layer2PacketParcelable.aidl b/common/networkstackclient/src/android/net/Layer2PacketParcelable.aidl new file mode 100644 index 0000000..f49ade4 --- /dev/null +++ b/common/networkstackclient/src/android/net/Layer2PacketParcelable.aidl @@ -0,0 +1,24 @@ +/** + * Copyright (c) 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing perNmissions and + * limitations under the License. + */ + +package android.net; + +import android.net.MacAddress; + +parcelable Layer2PacketParcelable { + MacAddress dstMacAddress; + byte[] payload; +} diff --git a/common/networkstackclient/src/android/net/ProvisioningConfigurationParcelable.aidl b/common/networkstackclient/src/android/net/ProvisioningConfigurationParcelable.aidl index 99606fb..0b6d7d5 100644 --- a/common/networkstackclient/src/android/net/ProvisioningConfigurationParcelable.aidl +++ b/common/networkstackclient/src/android/net/ProvisioningConfigurationParcelable.aidl @@ -35,4 +35,5 @@ parcelable ProvisioningConfigurationParcelable { int ipv6AddrGenMode; Network network; String displayName; + boolean enablePreconnection; } diff --git a/common/networkstackclient/src/android/net/ip/IIpClient.aidl b/common/networkstackclient/src/android/net/ip/IIpClient.aidl index 9989c52..ad94aee 100644 --- a/common/networkstackclient/src/android/net/ip/IIpClient.aidl +++ b/common/networkstackclient/src/android/net/ip/IIpClient.aidl @@ -35,4 +35,5 @@ oneway interface IIpClient { void removeKeepalivePacketFilter(int slot); void setL2KeyAndGroupHint(in String l2Key, in String groupHint); void addNattKeepalivePacketFilter(int slot, in NattKeepalivePacketDataParcelable pkt); + void notifyPreconnectionComplete(boolean success); } diff --git a/common/networkstackclient/src/android/net/ip/IIpClientCallbacks.aidl b/common/networkstackclient/src/android/net/ip/IIpClientCallbacks.aidl index 3681416..de398ed 100644 --- a/common/networkstackclient/src/android/net/ip/IIpClientCallbacks.aidl +++ b/common/networkstackclient/src/android/net/ip/IIpClientCallbacks.aidl @@ -15,6 +15,7 @@ */ package android.net.ip; +import android.net.Layer2PacketParcelable; import android.net.LinkProperties; import android.net.ip.IIpClient; import android.net.DhcpResultsParcelable; @@ -63,4 +64,7 @@ oneway interface IIpClientCallbacks { // Enabled/disable Neighbor Discover offload functionality. This is // called, for example, whenever 464xlat is being started or stopped. void setNeighborDiscoveryOffload(boolean enable); -}
\ No newline at end of file + + // Invoked on starting preconnection process. + void onPreconnectionStart(in List<Layer2PacketParcelable> packets); +} |