Clear pending hardware keepalive when stop()

When restarting a hardware keepalive in closing a ike session, a
hardware keepalive can cause exception with bad file descriptor.
The tunnel iface may have already been torn down while closing a
ike session that causes the hardware keepalive uses wrong file
descriptor of socket.
Therefore, added to clean up pending hardware keepalive restart
when stop is called.

Bug: 292461627
Test: atest FrameworksIkeTests, CtsIkeTestCases
Change-Id: Ib5127b7b1cdd7812c1f7c0b5a1234f2723332f19
1 file changed
tree: 79cb94dc4dc510e3cbdf15e973a7e6f677ca269b
  1. apex/
  2. api/
  3. flags/
  4. src/
  5. tests/
  6. Android.bp
  7. jarjar-rules-shared.txt
  8. jarjar-rules-test.txt
  9. lint-baseline.xml
  10. OWNERS
  11. PREUPLOAD.cfg
  12. README.md
  13. TEST_MAPPING
README.md

IKEv2 Library for Android

Introduction

This IKEv2 library is an in-process client library implementing the IKEv2 protocol as well as extensions necessary for the support of IWLAN. It is designed to work in a non-privileged fashion on top of the Android IPsec API surface.