Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcf7d6e3 authored by Neil Fuller's avatar Neil Fuller Committed by android-build-merger
Browse files

Merge "Switch to a single PacketSocketAddress constructor" am: 2d24f7a3 am: a357696c

am: 9ec43cc7

Change-Id: Id17253fbe7d22117dff5766ce5b50b4e446e5090
parents 7d84adaf 9ec43cc7
Loading
Loading
Loading
Loading
+8 −2
Original line number Original line Diff line number Diff line
@@ -69,7 +69,10 @@ public final class SocketUtils {
     */
     */
    @NonNull
    @NonNull
    public static SocketAddress makePacketSocketAddress(int protocol, int ifIndex) {
    public static SocketAddress makePacketSocketAddress(int protocol, int ifIndex) {
        return new PacketSocketAddress((short) protocol, ifIndex);
        return new PacketSocketAddress(
                (short) protocol /* sll_protocol */,
                ifIndex /* sll_ifindex */,
                null /* sll_addr */);
    }
    }


    /**
    /**
@@ -77,7 +80,10 @@ public final class SocketUtils {
     */
     */
    @NonNull
    @NonNull
    public static SocketAddress makePacketSocketAddress(int ifIndex, @NonNull byte[] hwAddr) {
    public static SocketAddress makePacketSocketAddress(int ifIndex, @NonNull byte[] hwAddr) {
        return new PacketSocketAddress(ifIndex, hwAddr);
        return new PacketSocketAddress(
                (short) 0 /* sll_protocol */,
                ifIndex /* sll_ifindex */,
                hwAddr /* sll_addr */);
    }
    }


    /**
    /**