Merge "Use ParcelFileDescriptor instead of FileDescriptor in INetd.aidl" am: d6c2dc5908
am: 7d5693279a
Change-Id: I8b89e88d1db96581ab91d649e5af621c499669ed
This commit is contained in:
@@ -1236,7 +1236,8 @@ public class IpSecService extends IIpSecService.Stub {
|
||||
OsConstants.UDP_ENCAP,
|
||||
OsConstants.UDP_ENCAP_ESPINUDP);
|
||||
|
||||
mSrvConfig.getNetdInstance().ipSecSetEncapSocketOwner(sockFd, callingUid);
|
||||
mSrvConfig.getNetdInstance().ipSecSetEncapSocketOwner(
|
||||
new ParcelFileDescriptor(sockFd), callingUid);
|
||||
if (port != 0) {
|
||||
Log.v(TAG, "Binding to port " + port);
|
||||
Os.bind(sockFd, INADDR_ANY, port);
|
||||
@@ -1696,7 +1697,7 @@ public class IpSecService extends IIpSecService.Stub {
|
||||
mSrvConfig
|
||||
.getNetdInstance()
|
||||
.ipSecApplyTransportModeTransform(
|
||||
socket.getFileDescriptor(),
|
||||
socket,
|
||||
callingUid,
|
||||
direction,
|
||||
c.getSourceAddress(),
|
||||
@@ -1715,7 +1716,7 @@ public class IpSecService extends IIpSecService.Stub {
|
||||
throws RemoteException {
|
||||
mSrvConfig
|
||||
.getNetdInstance()
|
||||
.ipSecRemoveTransportModeTransform(socket.getFileDescriptor());
|
||||
.ipSecRemoveTransportModeTransform(socket);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user