summaryrefslogtreecommitdiff
path: root/src/android/net
AgeCommit message (Collapse)Author
2019-05-14Merge "apf: Remove IPv6 NAT-T keepalive related codes and ApfTest ↵Aaron Huang
improvement" am: 4d492d89fa am: 24f14ed21b Change-Id: If01bc6a71cf26e13edc049d969d23088fa8242e4
2019-05-14apf: Remove IPv6 NAT-T keepalive related codes and ApfTest improvementAaron Huang
Remove IPv6 related codes since we don't support IPv6 NAT-T keepalive as the kernel doesn't support IPv6 UDP encapsulation. Renaming keepaliveAck to keepaliveResponce since NAT-T keeaplive response is not an ack. Also, add generateV4NattKeepaliveFilters() if multicast filter is disabled. Verify incoming packet contains 1 byte payload but it is not 0xff will pass NAT-T keepalive filter. Bug: 33530442 Test: atest FrameworksNetTests atest NetworkStackTests Change-Id: Ifb9e088c0c8d71c763ebd9ad122103d0f97ca278
2019-05-13Merge "Dropping NAT-T keepalive packet from APF" am: c4104f029fAaron Huang
am: 917c9f146b Change-Id: Ib3416ec37f0de12daf882068e00673ad60438c1a
2019-05-13Merge "Dropping NAT-T keepalive packet from APF"Aaron Huang
2019-05-10Dropping NAT-T keepalive packet from APFAaron Huang
Add NAT Traversal keepalive filter to APF program to drop NAT-T keepalive packets when NAT-T keepalive offload is starting. Bug: 33530442 Test: - atest NetworkStackTests - atest FrameworksNetTests Change-Id: I1c537485e11b31e5a6e0d8b7b6a1f396f9441746
2019-05-10Merge "Send message to add/remove NAT-T keepalive packet filter." am: 42e73893e0Aaron Huang
am: 99b6c3f485 Change-Id: I7c6bd151cd79309fb5e6869fd83a800e7425581a
2019-05-10Merge "Send message to add/remove NAT-T keepalive packet filter."Aaron Huang
2019-05-09Merge "adopt non-blocking method to obtain the IpMemoryStore service." am: ↵Xiao Ma
b340a6988b am: c657a844ea Change-Id: If0d43f21710ca31149610d3e6a5f0d7e4acc11a2
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-29Merge "Support adding NATT keepalive packet filter" am: d157594a2aMark Chien
am: b9e515c331 Change-Id: Idaa7238a5c9acdae9f6cff13095ee9436c7c92c8
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-28Merge changes Ia9865c75,I47d9d53d,Idbe10c36 am: da1df963e6Lorenzo Colitti
am: 5418c966ae Change-Id: If1bf801d383204fe17e8d997e9c930755a61bc6d
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-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-24Merge "Remove Settings constants for NetworkStack" into qt-devTreeHugger Robot
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-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-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-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-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-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
2019-04-09Move 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
2019-04-09Add a mechanism to pass the L2Key and group hint to IpClientChalard Jean
Test: IpClientTest Bug: 128803828 Change-Id: I399b20ce29a385a74971b7a7248a48cb4d66deb6 (cherry picked from commit 3cab290648a0a0f6e5f6c64c2225b3661aabba2f)
2019-04-08Move attach*Filter() and addArpEntry() methods to NetworkStackRemi NGUYEN VAN
The SocketUtils.attach*Filter and SocketUtils.addArpEntry methods were added there because they could not be added as JNI inside the NetworkStack. This was not possible because on Go devices, the NetworkStack was a jar library. But now, Go also uses an APK. Hence, move these methods to the NetworkStack. Fixes: 129433183 Merged-In: I66d7b3e4fbfa32bb0bc853e8cf9399031daff8a9 (cherry picked from commit fe71be2b04a3213828dc0347a1dd4a3675d20562) Change-Id: Ice433a41469e784385f19498c154345d7b9c69b5
2019-04-05Merge "Add a mechanism to pass the L2Key and group hint to IpClient"Remi NGUYEN VAN
2019-04-05Add a mechanism to pass the L2Key and group hint to IpClientChalard Jean
Test: IpClientTest Change-Id: I399b20ce29a385a74971b7a7248a48cb4d66deb6
2019-04-03Move attach*Filter() and addArpEntry() methods to NetworkStackpaulhu
The SocketUtils.attach*Filter and SocketUtils.addArpEntry methods were added there because they could not be added as JNI inside the NetworkStack. This was not possible because on Go devices, the NetworkStack was a jar library. But now, Go also uses an APK. Hence, move these methods to the NetworkStack. Change-Id: I1d88a0f0be23f2b15d5103fa092b9bf982329d7c Fix: 129433183 Test: atest NetworkStackTests FrameworksNetTests
2019-04-02Merge "Link to android experimental flags API"Chiachang Wang
2019-04-01Merge "Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues." ↵Paul Hu
am: f9d61f1c6d am: 96f34c3151 am: bf3e6f5e75 Change-Id: I599dcdb2312a3e1bb1de8e03f349df207c7cc075
2019-04-01Link to android experimental flags APIChiachang Wang
Bug: 120013793 Test: Build and atest NetworkStackTests Change-Id: I5c12b48e886e124025ecaa8548b70f26ebd20263
2019-04-01Merge "Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues."Paul Hu
2019-03-31Merge "Provide link to android experimental flags API" am: 9876efdabe am: ↵Chiachang Wang
a94479c120 am: 8724b66c2d Change-Id: I4045d54066cf1c8270bb6eca030daf0193721723
2019-04-01Fix ApfCapabilities, LinkAddress, RouteInfo, IpPrefix API issues.paulhu
Fix: 129362082 Fix: 129361362 Fix: 129360330 Fix: 129362379 Test: atest FrameworksNetTests NetworkStackTests Change-Id: I05fbc6f98207d5cf002e3cbc5829040af7d6be52