Remove unnecessary ifindex arg from destroyUdpSocket
Bug: 311792075 Test: m Change-Id: I0eb70c1248aff347e6f988789f340e117fceea33
This commit is contained in:
parent
627b8c6d34
commit
58498d1eee
2 changed files with 3 additions and 3 deletions
|
|
@ -139,7 +139,7 @@ public class QuicConnectionCloser {
|
|||
public void destroyUdpSocket(final InetSocketAddress src, final InetSocketAddress dst,
|
||||
final long cookie)
|
||||
throws SocketException, InterruptedIOException, ErrnoException {
|
||||
InetDiagMessage.destroyUdpSocket(src, dst, 0 /* ifindex */, cookie);
|
||||
InetDiagMessage.destroyUdpSocket(src, dst, cookie);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -491,7 +491,7 @@ public class InetDiagMessage extends NetlinkMessage {
|
|||
* Close the udp socket which can be uniquely identified with the cookie and other information.
|
||||
*/
|
||||
public static void destroyUdpSocket(final InetSocketAddress src, final InetSocketAddress dst,
|
||||
final int ifIndex, final long cookie)
|
||||
final long cookie)
|
||||
throws ErrnoException, SocketException, InterruptedIOException {
|
||||
FileDescriptor fd = null;
|
||||
|
||||
|
|
@ -502,7 +502,7 @@ public class InetDiagMessage extends NetlinkMessage {
|
|||
final StructInetDiagSockId id = new StructInetDiagSockId(
|
||||
src,
|
||||
dst,
|
||||
ifIndex,
|
||||
0 /* ifIndex */,
|
||||
cookie
|
||||
);
|
||||
sendNetlinkDestroyRequest(fd, IPPROTO_UDP, id, (short) family, 0 /* state */);
|
||||
|
|
|
|||
Loading…
Reference in a new issue