commit | 20df9dfe8c3005fcba96af5751b83fd5d6629517 | [log] [tgz] |
---|---|---|
author | Yan Yan <evitayan@google.com> | Tue Aug 20 16:23:16 2024 -0700 |
committer | Android Build Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Mon Dec 16 10:29:48 2024 -0800 |
tree | a4ac0f48e36a322d2d278ef5f964cf212e9f4c7d | |
parent | b289822fa27d8053fc9faede45a27f734fd8750f [diff] |
Handle ICMP in testRequestIpSecTransformStateForTx testRequestIpSecTransformStateForTs was flaky because sometimes ICMPv6(Router Solicitation) might be sent and failed the validation of packet/byte count. This CL provides two improvements - Change the validation to handle possible ICMP packets - In the await method, require sequence number match to ensure the expected packet has been sent out. Otherwise the await method will still return true on an old packet with the same SPI. Bug: 358324865 Test: atest IpSecManagerTunnelTest Flag: Exempt test code only (cherry picked from https://android-review.googlesource.com/q/commit:3479e57fd288fec7a735fad0cd2204bfca24cfdd) Merged-In: I471014c11328bc0f32ee1f805accbaf7b29b8e7c Change-Id: I471014c11328bc0f32ee1f805accbaf7b29b8e7c