Merge "Use ParcelFileDescriptor instead of FileDescriptor in INetd.aidl" am: d6c2dc5908 am: 7d5693279a
am: 0c54c1616d
Change-Id: I1dd010a0b4ec54c87b509c1e05185164fde9e4cb
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