Loading Android.bp +1 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ filegroup { srcs: [ "apishim/common/**/*.java", "apishim/29/**/*.java", "apishim/current/**/*.java", "apishim/30/**/*.java", ":net-module-utils-srcs", ], } Loading apishim/30/com/android/networkstack/apishim/SocketUtilsShimImpl.java +1 −2 Original line number Diff line number Diff line Loading @@ -44,7 +44,6 @@ public class SocketUtilsShimImpl @Override public SocketAddress makePacketSocketAddress( int protocol, int ifIndex, @NonNull byte[] hwAddr) { // TODO: use new API (which takes protocol, ifIndex, hwAddr) once implemented return SocketUtils.makePacketSocketAddress(ifIndex, hwAddr); return SocketUtils.makePacketSocketAddress(protocol, ifIndex, hwAddr); } } src/android/net/dhcp/DhcpClient.java +3 −1 Original line number Diff line number Diff line Loading @@ -82,6 +82,7 @@ import com.android.internal.util.StateMachine; import com.android.internal.util.TrafficStatsConstants; import com.android.internal.util.WakeupMessage; import com.android.networkstack.R; import com.android.networkstack.apishim.SocketUtilsShimImpl; import java.io.FileDescriptor; import java.io.IOException; Loading Loading @@ -389,7 +390,8 @@ public class DhcpClient extends StateMachine { } mHwAddr = mIface.macAddr.toByteArray(); mInterfaceBroadcastAddr = makePacketSocketAddress(mIface.index, DhcpPacket.ETHER_BROADCAST); mInterfaceBroadcastAddr = SocketUtilsShimImpl.newInstance().makePacketSocketAddress( ETH_P_IP, mIface.index, DhcpPacket.ETHER_BROADCAST); return true; } Loading Loading
Android.bp +1 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ filegroup { srcs: [ "apishim/common/**/*.java", "apishim/29/**/*.java", "apishim/current/**/*.java", "apishim/30/**/*.java", ":net-module-utils-srcs", ], } Loading
apishim/30/com/android/networkstack/apishim/SocketUtilsShimImpl.java +1 −2 Original line number Diff line number Diff line Loading @@ -44,7 +44,6 @@ public class SocketUtilsShimImpl @Override public SocketAddress makePacketSocketAddress( int protocol, int ifIndex, @NonNull byte[] hwAddr) { // TODO: use new API (which takes protocol, ifIndex, hwAddr) once implemented return SocketUtils.makePacketSocketAddress(ifIndex, hwAddr); return SocketUtils.makePacketSocketAddress(protocol, ifIndex, hwAddr); } }
src/android/net/dhcp/DhcpClient.java +3 −1 Original line number Diff line number Diff line Loading @@ -82,6 +82,7 @@ import com.android.internal.util.StateMachine; import com.android.internal.util.TrafficStatsConstants; import com.android.internal.util.WakeupMessage; import com.android.networkstack.R; import com.android.networkstack.apishim.SocketUtilsShimImpl; import java.io.FileDescriptor; import java.io.IOException; Loading Loading @@ -389,7 +390,8 @@ public class DhcpClient extends StateMachine { } mHwAddr = mIface.macAddr.toByteArray(); mInterfaceBroadcastAddr = makePacketSocketAddress(mIface.index, DhcpPacket.ETHER_BROADCAST); mInterfaceBroadcastAddr = SocketUtilsShimImpl.newInstance().makePacketSocketAddress( ETH_P_IP, mIface.index, DhcpPacket.ETHER_BROADCAST); return true; } Loading