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,
|
||||||
OsConstants.UDP_ENCAP_ESPINUDP);
|
OsConstants.UDP_ENCAP_ESPINUDP);
|
||||||
|
|
||||||
mSrvConfig.getNetdInstance().ipSecSetEncapSocketOwner(sockFd, callingUid);
|
mSrvConfig.getNetdInstance().ipSecSetEncapSocketOwner(
|
||||||
|
new ParcelFileDescriptor(sockFd), callingUid);
|
||||||
if (port != 0) {
|
if (port != 0) {
|
||||||
Log.v(TAG, "Binding to port " + port);
|
Log.v(TAG, "Binding to port " + port);
|
||||||
Os.bind(sockFd, INADDR_ANY, port);
|
Os.bind(sockFd, INADDR_ANY, port);
|
||||||
@@ -1696,7 +1697,7 @@ public class IpSecService extends IIpSecService.Stub {
|
|||||||
mSrvConfig
|
mSrvConfig
|
||||||
.getNetdInstance()
|
.getNetdInstance()
|
||||||
.ipSecApplyTransportModeTransform(
|
.ipSecApplyTransportModeTransform(
|
||||||
socket.getFileDescriptor(),
|
socket,
|
||||||
callingUid,
|
callingUid,
|
||||||
direction,
|
direction,
|
||||||
c.getSourceAddress(),
|
c.getSourceAddress(),
|
||||||
@@ -1715,7 +1716,7 @@ public class IpSecService extends IIpSecService.Stub {
|
|||||||
throws RemoteException {
|
throws RemoteException {
|
||||||
mSrvConfig
|
mSrvConfig
|
||||||
.getNetdInstance()
|
.getNetdInstance()
|
||||||
.ipSecRemoveTransportModeTransform(socket.getFileDescriptor());
|
.ipSecRemoveTransportModeTransform(socket);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user