summaryrefslogtreecommitdiff
path: root/tests/src/android/net/apf/ApfTest.java
AgeCommit message (Collapse)Author
2019-05-21Move the NetworkStack tests to unit/ to add an integration test.Lorenzo Colitti
Test: m Change-Id: If638183f45956b60d694c859a759dd761c0598b2
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-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-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-03-25apf: Documentation improvements and code optimizations for keepalive filtersAaron Huang
Optimizing instruction to reduce code size of keepalive filters. Bug: 123992088 Test: atest NetworkStackTests Change-Id: I9ae55977c6d6740277ba55603ee957f33a97ecaa
2019-03-01Migrate frameworks/base/tests/testables and its users to androidx.testBrett Chabot
See go/jetpack-test-android-migration Test: atest TestablesTests NetworkStackTests FrameworksServicesTests SystemUITests FrameworksUiServicesTests ExtServicesUnitTests Exempt-From-Owner-Approval: already reviewed Change-Id: I083fcdaa71b503535aa2b3c257740f3ecf055373 Merged-In: Ib04d80954bd8536914d88c66b28e6632e60a6245
2019-02-15Replace TcpSocketInfo with TcpKeepalivePacketDataParcelable in ApfTest.Xiao Ma
Test: atest NetworkStackTests Change-Id: I95fde70c07b398a2a2f734f35165870284a3959c
2019-02-14Fix testApfFilterKeepaliveAck.Xiao Ma
Apf program for TCP keep alive ACK also compares protocol field in IPv4 header and the total length of TCP keep alive ACK packet. Besides, should set the ACK flag in the the TCP header of keep alive ACK packet. Bug: 123992564 Test: atest NetworkStackTests Change-Id: I997cd6807a33f7e1af25566226d803dcc2e257dd
2019-02-06[KA07] Drop TCP keepalive ack packetsAaron Huang
To support TCP keepalive offload, APF filter needs to add program for dropping keepalive ack packets when offload is starting. Bug: 114151147 Test: runtest frameworks-net -c android.net.apf.ApfTest Change-Id: If16a9bc04eb29dfedb950b6e4c85fe9ad4cf259f
2019-01-23Move IpClient to NetworkStackRemi NGUYEN VAN
Test: atest FrameworksNetTests NetworkStackTests Bug: b/112869080 Change-Id: I7d00848c052382cd1b6ce458868bed6a1e9e8ec5