History log of /system/core/fastboot/tcp.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
022d8f588590e9c22639c17e6bcf7d52c37b8bf6 17-Feb-2016 David Pursell <dpursell@google.com> fastboot: fix TCP protocol version check.

Currently the TCP handshake fails if the device TCP protocol version
doesn't match the host exactly, but the protocol is supposed to allow
for forwards compatibility by accepting any protocol version >= itself.
That way the other side can potentially lower its protocol to match and
keep going.

This CL fixes the protocol version check and adds corresponding unit
tests.

Bug: http://b/27220700

(cherry picked from commit aad72a533f97e8be5114e127fb681ee1596bdc89)

Change-Id: Ib17f0a55eb910105a27609bc94bf76a30442e92e
/system/core/fastboot/tcp.cpp
2ec418a4c98f6e8f95395456e1ad4c2956cac007 20-Jan-2016 David Pursell <dpursell@google.com> fastboot: add TCP protocol.

This CL implements a TCP protocol for use with fastboot. Protocol
description is given in fastboot_protocol.txt, some examples of
expected behavior can also be found in tcp_test.cpp.

Usage is:
fastboot -s tcp:<hostname>[:port] <command>

Bug: http://b/26558551
Change-Id: If53a514a534489c617db32c4fea8819949121282
/system/core/fastboot/tcp.cpp