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
Change-Id: I471014c11328bc0f32ee1f805accbaf7b29b8e7c
2 files changed