summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-05-10adopt non-blocking method to obtain the IpMemoryStore service.Xiao Ma
Bug: 131133347 Test: atest FrameworksNetTests Merged-In: I7de4f23370bdf9c9df5e74ed074c794080d93d95 Merged-In: If0d43f21710ca31149610d3e6a5f0d7e4acc11a2 Change-Id: If0d43f21710ca31149610d3e6a5f0d7e4acc11a2 (cherry picked from commit c4e4fd7beeda36c84548c7bb4a16312f20bdf188)
2019-05-09Use async dns query to resolve all addressesChiachang Wang
Currently, it looks like private DNS server resolution uses OneAddressPerFamilyNetwork and only returns one server address. It should return all addresses. Use async dns api for this. Bug: 123435238 Test: atest NetworkStacktests Change-Id: I9f50da3c8c2e3b12b29bc8844291e4bf1559cd1f
2019-05-09Switch to positive naming for NetworkMonitor's Networks.Lorenzo Colitti
"mNonPrivateDnsBypassNetwork" is not very easy to understand. Bug: 122652057 Test: atest FrameworksNetTests NetworkStackTests Change-Id: If5801c81c6ef222b46f631bd6570dcd0fea465bd Merged-In: If5801c81c6ef222b46f631bd6570dcd0fea465bd (cherry picked from commit 669dc6cea79f23699b6767d9b204eabca28e9e3a)
2019-05-09Merge "Switch to positive naming for NetworkMonitor's Networks."Lorenzo Colitti
2019-05-09Switch to positive naming for NetworkMonitor's Networks.Lorenzo Colitti
"mNonPrivateDnsBypassNetwork" is not very easy to understand. Bug: 122652057 Test: atest FrameworksNetTests NetworkStackTests Change-Id: If5801c81c6ef222b46f631bd6570dcd0fea465bd
2019-05-09adopt non-blocking method to obtain the IpMemoryStore service.Xiao Ma
Test: atest FrameworksNetTests Change-Id: I7de4f23370bdf9c9df5e74ed074c794080d93d95
2019-05-06Send message to add/remove NAT-T keepalive packet filter.Aaron Huang
Remove definition of TYPE_NATT and TYPE_TCP since the type can be identified by checking message.obj is an instance of NattKeepalivePacketData or TcpKeepalivePacketData. It's more simple and won't have dependency on KeepaliveInfo. Bug: 33530442 Test: atest FrameworksNetTests atest NetworkStackTests Change-Id: Ic97ffe9ff5781778efd264460809f5059f0f4230
2019-04-30Support adding NATT keepalive packet filterMark Chien
Support adding NATT keepalive packet filter to APF filter. Generating APF program will be addressed in another CL. Bug: 33530442 Test: - atest NetworkStackTests - atest FrameworksNetTests Change-Id: I403cd14ac9aa6b001c4e580abbb33a615931a192 Merged-In: Idaa7238a5c9acdae9f6cff13095ee9436c7c92c8 (cherry picked from commit 038c11d564452c9e08f25119423049339ff93c57)
2019-04-29Support adding NATT keepalive packet filterAaron Huang
Support adding NATT keepalive packet filter to APF filter. Generating APF program will be addressed in another CL. Bug: 33530442 Test: - atest NetworkStackTests - atest FrameworksNetTests Change-Id: I4961d5da343d8700600269632787c28112f0f9f1
2019-04-29Additional code for server name in DHCP packets.Lorenzo Colitti
- Add the hostname to DhcpResultsParcelable. - Don't store the server hostname if option overload is in use, as this is not valid. - Add unit tests. Bug: 120584519 Bug: 127423755 Test: atest NetworkStackTests Test: atest FrameworksNetTests Change-Id: I5e9fee5471740f5d7c001e9e98017f32be452344 Merged-In: I60071bc029d25485bf204cfd3a8cebd538ca12b6 (cherry picked from commit 681f33cc6a74f5c68e426e1fae6baeaccaf7267f)
2019-04-29Parse the server host name field of the dhcp packageyuanyunli
Some hotspot devices will fill in the server host name field of the DHCP package, such as iphone. Parsing the server host name of the DHCP package can help identify ios hotspots. Bug: 120584519 Test: 127423755 Test: builds, boots, wifi works Change-Id: I8c5a7dc8ab117f062f9401f58832edada321436b Merged-In: I60071bc029d25485bf204cfd3a8cebd538ca12b6 (cherry picked from commit 43f1bc9d5399e1d659bb5e7ac08dc31d36345d5f)
2019-04-27Additional code for server name in DHCP packets.Lorenzo Colitti
- Add the hostname to DhcpResultsParcelable. - Don't store the server hostname if option overload is in use, as this is not valid. - Add unit tests. Bug: 120584519 Bug: 127423755 Test: atest NetworkStackTests Test: atest FrameworksNetTests Change-Id: I47d9d53d1fb58968322cc8b071a44fbc8f7156e1
2019-04-26Parse the server host name field of the dhcp packageyuanyunli
Some hotspot devices will fill in the server host name field of the DHCP package, such as iphone. Parsing the server host name of the DHCP package can help identify ios hotspots. Bug: 120584519 Test: 127423755 Test: builds, boots, wifi works Change-Id: Idbe10c36332ce421f1bba93eb87e9e1e12463088
2019-04-25Merge "Remove Settings constants for NetworkStack"Chiachang Wang
2019-04-25Remove Settings constants for NetworkStackChiachang Wang
The definitions reference of these constants are moved from Settings to DeviceConfig. These definitions are @hide and the usage in the Settings are removed. Thus, remove the definitions from API level. Bug: 123167629 Test: make system-api-stubs-docs-update-current-api \ test-api-stubs-docs-update-current-api Test: atest NetworkStackTests Change-Id: I28c4bf2c0b72e154cea91d11007a9497c7f21570 Merged-In: I7291cfa86cd6e907df35e8fbc97e2e9a77e56cab Merged-In: Ic48bea07e79490dd3787068bc88c748525752a61
2019-04-24Delete unused timeout constant.Lorenzo Colitti
Test: m Bug: 129312219 Change-Id: I5b4c8b42dea515f674ff10d64d0e1d06d849cca1 Merged-In: I5b4c8b42dea515f674ff10d64d0e1d06d849cca1 (cherry picked from commit 21c692d71783d1c14a82910feaa3965367af85a6)
2019-04-24Merge "Remove Settings constants for NetworkStack" into qt-devTreeHugger Robot
2019-04-24Delete unused timeout constant.Lorenzo Colitti
Test: m Bug: 129312219 Change-Id: I5b4c8b42dea515f674ff10d64d0e1d06d849cca1
2019-04-24Add a timeout for the DNS probe.Lorenzo Colitti
Bug: 129312219 Test: atest NetworkStackTests Test: atest --generate-new-metrics 50 NetworkStackTests:com.android.server.connectivity.NetworkMonitorTest Change-Id: Ib3ab9105d7ae39f551b51e8d5a04b9ec5e549655 Merged-In: Ib3ab9105d7ae39f551b51e8d5a04b9ec5e549655 (cherry picked from commit c7204f689dc58c3ac84818cb1f8fb9add307d90c)
2019-04-23Merge "Add a timeout for the DNS probe."Lorenzo Colitti
2019-04-23Freeze the networkstack-aidl-interfaces interfaceLorenzo Colitti
This freezes the interface as of the latest beta build, not the tip of tree. IIpClient#setL2KeyAndGroupHint is not in the frozen definition in particular. Generated with: m networkstack-aidl-interfaces-freeze-api \ ipmemorystore-aidl-interfaces-freeze-api Test: flashed, booted, WiFi and captive portal working Bug: 128803828 Change-Id: Ideabe73fc93bbefca2d624ee9ca190cf31419424 Merged-In: Ideabe73fc93bbefca2d624ee9ca190cf31419424 (cherry picked from commit 9b89cdaaf401a6b77e160807039c06e537fa600a)
2019-04-23Merge "provide a resource overlay to configure customized DNS Server." into ↵TreeHugger Robot
qt-dev
2019-04-23Freeze the networkstack-aidl-interfaces interfaceRemi NGUYEN VAN
This freezes the interface as of the latest beta build, not the tip of tree. IIpClient#setL2KeyAndGroupHint is not in the frozen definition in particular. Generated with: m networkstack-aidl-interfaces-freeze-api \ ipmemorystore-aidl-interfaces-freeze-api Test: flashed, booted, WiFi and captive portal working Bug: 128803828 Change-Id: Ideabe73fc93bbefca2d624ee9ca190cf31419424
2019-04-23Remove Settings constants for NetworkStackChiachang Wang
The definitions reference of these constants are moved from Settings to DeviceConfig. These definitions are @hide and the usage in the Settings are removed. Thus, remove the definitions from API level. Bug: 123167629 Test: make system-api-stubs-docs-update-current-api \ test-api-stubs-docs-update-current-api Test: atest NetworkStackTests Change-Id: I28c4bf2c0b72e154cea91d11007a9497c7f21570
2019-04-22Add a timeout for the DNS probe.Lorenzo Colitti
Bug: 129312219 Test: atest NetworkStackTests Test: atest --generate-new-metrics 50 NetworkStackTests:com.android.server.connectivity.NetworkMonitorTest Change-Id: Ib3ab9105d7ae39f551b51e8d5a04b9ec5e549655
2019-04-22Merge changes Id598ae1d,I475bd011Chalard Jean
* changes: Fix a possible crash when the listener is null Straighten AIDL interface for the memory store
2019-04-22Straighten AIDL interface for the memory storeChalard Jean
Some names were still wrong somehow, and the wrappers were missing. Test: NetworkStack & FrameworkNetTests Change-Id: I475bd011ad9bc714a07021a9dfd85c4876f8e9ad Merged-In: I475bd011ad9bc714a07021a9dfd85c4876f8e9ad
2019-04-19Move Setting constants for NetworkStackChiachang Wang
From mainline perspective, we should use android flag api instead of using Settings. Thus, move the definitions into NetworkStack and apply new flag design. Bug: 123167629 Test: atest NetworkStackTests Change-Id: I9602263f0bff5d8e942bd652de69ccfcb3034a2f Merged-In: I6820300c412f94989a5fce7bd6c6f2a3b983b96e Merged-In: I4f6d130ffbee14f5087d75a8bc211680a34be682 (cherry picked from commit 01440ea909732e5d6f81604b61841f07b3d83217)
2019-04-19Merge changes from topic "StatsLog.write_migrate"Chiachang Wang
* changes: Java code for mainline modules to log to statsd. Migrate NetworkStack metrics off StatsLog.write
2019-04-18Merge "Move Setting constants for NetworkStack"Chiachang Wang
2019-04-18Migrate NetworkStack metrics off StatsLog.writeChiachang Wang
Now that the new metrics API can be used, NetworkStack metrics need to migrate off the legacy StatsLog.write. Bug: 130323000 Test: Test with ./out/host/linux-x86/bin/statsd_testdrive 121 to ensure log properly Test: Ensure NetworkStackStatsLog will be generated as expected Test: atest NetworkStackTest cherry-picking commit e512b269132. Change-Id: I8c70503cf1d9f1d06f30a1936d2d88857d0cff53 Merged-In: I1bfe856d771bf56fe33790aea22eceae2001921a
2019-04-17Move Setting constants for NetworkStackChiachang Wang
From mainline perspective, we should use android flag api instead of using Settings. Thus, move the definitions into NetworkStack and apply new flag design. Bug: 123167629 Test: atest NetworkStackTests Change-Id: I9602263f0bff5d8e942bd652de69ccfcb3034a2f
2019-04-17Move TrafficStats tags for the network stack constantsChalard Jean
As per API council feedback, these constants should live in a place that is private to the network stack, only with a range defined in system API. Bug: 129433383 Test: m Change-Id: I84a90f84a9af6fef4667ee4d512ebd0413222086 Merged-In: I4882686a86e7c6d42f4b0619b921d02619ed6d4c Merged-In: I9b648ed6c687d56db61a54570c7880c51c1bae51
2019-04-16Move TrafficStats tags for the network stack constantsChalard Jean
As per API council feedback, these constants should live in a place that is private to the network stack, only with a range defined in system API. Bug: 129433383 Test: m Change-Id: I84a90f84a9af6fef4667ee4d512ebd0413222086 (cherry picked from commit 79a6330650ca04bd7a08afbd63f8016a3b30bc72)
2019-04-12Freeze netd AIDL interface (framework)Remi NGUYEN VAN
This freezes the interface as of the latest beta build, although it has not changed since then. This change adds the necessary implementations for getInterfaceVersion. Test: flashed, WiFi working Bug: 128803828 Merged-In: Ib852b0555f0e20b858f9dd0b16dbd98dbbd22b55 Merged-In: I0c231bdce89474b53603cc15d55787c8c78a809d (cherry picked from commit fd4eafe8f6c37073e7326149d978e40e394cdc50) Change-Id: Idc0e7ea98dbf57e07ee578bc1772c2111af2e563
2019-04-12Merge "Address nit in NetworkStackUtils" into qt-devChiachang Wang
2019-04-12provide a resource overlay to configure customized DNS Server.Xiao Ma
Bug: 122621524 Test: atest FrameworksNetTests NetworkStackTests Merged-In: I123b3d4516cc6ba6d17629eb74daf448ba7121eb Merged-In: Iba867a3b7bda1f5db9dfa1b7521d4a4badbf88e0 (cherry picked from commit ac7eb77b90d830179358242fd6e594cc28c0cc31) Change-Id: Iab8b57ae1bc81c12ce07f849c7820977a9061d55
2019-04-12Address nit in NetworkStackUtilsChiachang Wang
Follow up commit to fix nit in aosp/937891 Bug: 120013793 Test: Build Change-Id: I61a6306d3c439a2d72323ab56e2b47771cc60d48 Merged-In: Ide4741305724a9e0d26305f8406c5445f9de12b3 (cherry picked from commit cfb4e06b14925a7ed4324df0e40ec521256ed249)
2019-04-11Migrate NetworkStack metrics off StatsLog.writeChiachang Wang
Now that the new metrics API can be used, NetworkStack metrics need to migrate off the legacy StatsLog.write. Bug: 130323000 Test: Test with ./out/host/linux-x86/bin/statsd_testdrive 121 to ensure log properly Test: Ensure NetworkStackStatsLog will be generated as expected Test: atest NetworkStackTest Change-Id: I8c70503cf1d9f1d06f30a1936d2d88857d0cff53
2019-04-11Merge "provide a resource overlay to configure customized DNS Server."Treehugger Robot
2019-04-11Merge "Address nit in NetworkStackUtils"Chiachang Wang
2019-04-11provide a resource overlay to configure customized DNS Server.Xiao Ma
Bug: 122621524 Test: atest FrameworksNetTests NetworkStackTests Change-Id: I123b3d4516cc6ba6d17629eb74daf448ba7121eb
2019-04-11Address nit in NetworkStackUtilsChiachang Wang
Follow up commit to fix nit in aosp/937891 Bug: 120013793 Test: Build Change-Id: I61a6306d3c439a2d72323ab56e2b47771cc60d48
2019-04-11Merge "Freeze netd AIDL interface (framework)"Remi NGUYEN VAN
2019-04-10Merge "Move data stall definitions out from Setting"Chiachang Wang
2019-04-10Move data stall definitions out from SettingChiachang Wang
From mainline perspective, we should use android flag api instead of using Settings. Thus, move the definitions into NetworkStack. Bug:120013793 Test: atest NetworkStackTests SettingsBackupTest Change-Id: I8e1fb5b47fff3bf624131ba1f5732daabd991e6d Merged-In: I8e1fb5b47fff3bf624131ba1f5732daabd991e6d Merged-In: I0a2a1e5d3de14ea86556ca471e26064df3481412
2019-04-10Freeze netd AIDL interface (framework)Remi NGUYEN VAN
This freezes the interface as of the latest beta build, although it has not changed since then. This change adds the necessary implementations for getInterfaceVersion. Test: flashed, WiFi working Bug: 128803828 Change-Id: I43a6a38685d5fbc669cd573c4d7e7f99bd596952
2019-04-10Expose captive portal urls for configurationRemi NGUYEN VAN
Carriers in Mainland China need to customize certain captive portal urls. The main issue is that google servers are not accessible in Mainland China. Added the following captive portal resources to be targeted for overlay. - config_captive_portal_http_url - config_captive_portal_https_url - config_captive_portal_fallback_urls (string-array) - config_captive_portal_fallback_probe_specs (string-array) These values can be customized for e g diffent countries Bug: 111819230 Test: atest FrameworksNetTests NetworkStackTests Test: Add a product RRO that targets a specific country code, insert a SIM card that matches that country code and check the log what URL is used. Merged-In: I54050b28bbfb93e0b7e509dbe0e987a0b902b7d9 Merged-In: I1f734c5f864bb2f2bc8ba1a66fe33d3480554f69 (cherry picked from commit 2977a40b1e8db190e5974a638b2619b3d253d38b) Change-Id: I278f2888851d38edb59157f8623541fbe94549b6
2019-04-09Merge "Move data stall definitions out from Setting" into qt-devChiachang Wang
2019-04-09Merge "Add a mechanism to pass the L2Key and group hint to IpClient" into qt-devTreeHugger Robot