OSDN Git Service

Connect the DHCP UDP socket to the server.
authorLorenzo Colitti <lorenzo@google.com>
Thu, 10 Sep 2015 09:12:18 +0000 (18:12 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Sun, 11 Oct 2015 07:06:11 +0000 (16:06 +0900)
commit4e4d59eeef86fa8560d35c00168869b0a066f962
tree588b2f4fa478083bfb05d689b8effd89e7c8dd9a
parenteb0bbd45f62fcaff26151b54a7b3ea16bb67e3be
Connect the DHCP UDP socket to the server.

This makes it so that the socket cannot receive datagrams from
anybody except the DHCP server. This does not improve security,
because we never read from the UDP socket anyway, but it does
make ListeningPortsTest pass.

Bug: 23906864
Bug: 23933386
Change-Id: Ib090273a417f7eb2ac1ee3309260249b72fb8345
core/java/android/net/DhcpResults.java
services/net/java/android/net/dhcp/DhcpClient.java