summaryrefslogtreecommitdiff
path: root/src/android/net/util/NetworkStackUtils.java
diff options
context:
space:
mode:
authorXiao Ma <xiaom@google.com>2019-09-03 10:41:58 +0900
committerXiao Ma <xiaom@google.com>2019-10-18 15:14:09 +0900
commitc66d5d07cea6a68789c44df41271cec9ee1f3131 (patch)
tree9234780b62d2f62badf14af3ba4c6a3d34932fc9 /src/android/net/util/NetworkStackUtils.java
parentdf4c156e6ef04454cc99087e75f570625d37ed70 (diff)
Refactor the ReceiveThread with PacketReader in DhcpClient.
To implement the IP address conflict detection, we need another ReceiveThread to listen ARP packets as well. Ideally, we should listen both of DHCP packets and ARP packets in the same thread with DhcpClient state machine handler. This CL replaces the ReceiveThread with PacketReader to listen DHCP packets. After refactoring, DHCP packets are read from the same handler thread instead of a separate receiving thread. Then we can also leverage the same handler thread to listen the ARP packets simultaneously via another raw socket. Bug: 130775067 Test: atest NetworkStackTests NetworkStackIntegrationTests Change-Id: I23e91a6c2d99cf8053e62f2ae9d78481ece6384d
Diffstat (limited to 'src/android/net/util/NetworkStackUtils.java')
0 files changed, 0 insertions, 0 deletions