Loading core/java/android/net/util/SocketUtils.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -70,7 +70,7 @@ 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( return new PacketSocketAddress( (short) protocol /* sll_protocol */, protocol /* sll_protocol */, ifIndex /* sll_ifindex */, ifIndex /* sll_ifindex */, null /* sll_addr */); null /* sll_addr */); } } Loading @@ -81,7 +81,7 @@ 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( return new PacketSocketAddress( (short) 0 /* sll_protocol */, 0 /* sll_protocol */, ifIndex /* sll_ifindex */, ifIndex /* sll_ifindex */, hwAddr /* sll_addr */); hwAddr /* sll_addr */); } } Loading Loading
core/java/android/net/util/SocketUtils.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -70,7 +70,7 @@ 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( return new PacketSocketAddress( (short) protocol /* sll_protocol */, protocol /* sll_protocol */, ifIndex /* sll_ifindex */, ifIndex /* sll_ifindex */, null /* sll_addr */); null /* sll_addr */); } } Loading @@ -81,7 +81,7 @@ 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( return new PacketSocketAddress( (short) 0 /* sll_protocol */, 0 /* sll_protocol */, ifIndex /* sll_ifindex */, ifIndex /* sll_ifindex */, hwAddr /* sll_addr */); hwAddr /* sll_addr */); } } Loading