OSDN Git Service

Rework KeepalivePacketData for Compatibility with Cell
authorNathan Harold <nharold@google.com>
Thu, 7 Dec 2017 03:07:32 +0000 (19:07 -0800)
committerNathan Harold <nharold@google.com>
Wed, 24 Jan 2018 19:13:19 +0000 (11:13 -0800)
commit26deacfbe7eb1730aea9eeb03fa265af2ce90cad
tree9b3529af64d72f8e2e5dfbbdee1b3634bcb75206
parent974aada04734ced17f3842c817e7e8c3528d0739
Rework KeepalivePacketData for Compatibility with Cell

KeepalivePacketData currently mixes multiple concepts: the
list of parameters that are used to generate a keepalive
packet, the keepalive packet itself, and the parameters that
are needed to send a keepalive packet over an ethernet link.

The KeepalivePacketData is now a parcelable that can be used
generically by any NetworkAgent, regardless of how that Agent
fulfills its duty to initiate and maintain a keepalive session.

Bug: 69063212
Test: verified with SL4A, additional tests pending
Change-Id: I23dc4827ae729583356a8ff0f02e39a2ad2b81f5
core/java/android/net/KeepalivePacketData.aidl [new file with mode: 0644]
core/java/android/net/KeepalivePacketData.java
services/core/java/com/android/server/connectivity/KeepaliveTracker.java