OSDN Git Service

Add NATT keepalive resources and methods into IpSecService
authorBenedict Wong <benedictwong@google.com>
Mon, 25 Feb 2019 20:33:22 +0000 (12:33 -0800)
committerBenedict Wong <benedictwong@google.com>
Fri, 19 Apr 2019 18:17:21 +0000 (11:17 -0700)
commit2445227fa803e66ad39693057625aae72db454ed
treef285505acf4cc3d5dfaa66022bee04c2894f8c82
parent3876ca9d81fbeb07dbda8c7d9c2600cf31ad7952
Add NATT keepalive resources and methods into IpSecService

This change adds a new NATTKeepalive resource type, along with the
associated allocation/deallocation. Additionally, this change allows
ReferenceCountedResource(s) to not be binder-linked, to allow the
ConnectivityService to verify ownership and allocate a NattKeepalive
without double-registering for binder-death notifications.

Bug: 125517194
Test: IpSecService frameworks tests ran
Change-Id: I8293f79940ad57dabb6f2b9de5e334d06b869443
core/java/android/net/IIpSecService.aidl
services/core/java/com/android/server/IpSecService.java
tests/net/java/com/android/server/IpSecServiceTest.java